Server IP : 198.54.121.189 / Your IP : 216.73.216.140
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Upload Files :
Command :
Current File : /home/giriqfky/public_html/Barga/application/modules/notifications/views//send_notification.php
<section id="main-content">
<div class="col-md-12">
<ol class="breadcrumb breadcrumb-arrow">
<li><a href="<?php echo site_url('dashboard');?>">Dashboard</a> </li>
<li class="active"><span><?php echo $title?></span></li>
</ol>
<?php if($this->session->flashdata('msg_success')){?>
<div class="alert alert-success"><small class="text-danger"><?php echo $this->session->flashdata('msg_success');?></small></div>
<?php }?>
</div>
<div class="col-md-12 col-xs-12 searchform">
<!-- Search Form -->
<div class="row">
<form name="frm_search_filter" method="post" action="" id="frm_search_filter">
<div class="col-md-2 col-sm-6 col-xs-12">
<div class="form-group">
<select name="app_user_type" id="app_user_type" class="form-control">
<option value="">All User Types</option>
<?php foreach(appUserTypes() as $key => $ut) {?>
<option value="<?php echo $key;?>"><?php echo $ut;?></option>
<?php }?>
</select>
</div>
</div>
<div class="col-md-2 col-sm-6 col-xs-12">
<div class="form-group">
<input id="user_mobile" name="user_mobile" type="text" placeholder="User Number" class="form-control numeric" maxlength="10">
</div>
</div>
<div class="col-md-2 col-sm-6 col-xs-12">
<div class="form-group">
<input id="user_profile_name" name="user_profile_name" type="text" placeholder="User Name" class="form-control">
</div>
</div>
<div class="col-md-2 col-sm-6 col-xs-12 pull-left">
<button type="button" class="btn btn-success btn-md" onclick="getAppUsers();">Get Record</button>
<button type="button" class="btn btn-danger btn-md" onclick="memberClear();">Reset</button>
</div>
<div class="col-md-12">
<div class="bg-notify">
<i class="fa fa-question-circle" aria-hidden="true"></i> <small>Please search for users with above criteria, then select all or choose specific users, Fill the notification title and message and press 'Send Notification' button</small>
</div>
</div>
</form>
</div>
<!-- End of Search Form -->
</div>
<section class="content">
<div class="row">
<!-- left column -->
<div class="col-md-12">
<!-- general form elements -->
<div class="box box-primary">
<div class="box-body">
<form name="frm_send_notification" method="post" action="" id="frm_send_notification">
<div class="data_list" id="data_list"></div>
<div class="col-md-12">
<div class="form-group">
<label style="width:100%;float:left;">Notification Alert Type <span class="text-danger">*</span></label>
<select class="form-control" name="notification_alert_type" id="notification_alert_type">
<option value="1">General</option>
<option value="2">Birthday</option>
<option value="3">Anniversary</option>
</select>
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<label>Title <span class="text-danger">*</span></label>
<input class="form-control" type="text" name="notification_title" id="notification_title" value="" />
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<label>Message <span class="text-danger">*</span></label>
<textarea class="form-control" name="notify_message" id="notify_message" rows="5"></textarea>
<div class="pull-left"><small class="text-danger">* Max 120 characters.</small></div>
<div class="pull-right"><span id="notify_msg"></span></div>
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<label style="width:100%;float:left;">Browse Image For Push Notification <small class="text-danger">(*image size 800px*450px)</small></label>
<input type="file" name="push_image" id="push_image" />
</div>
</div>
<div class="col-md-12">
<div class="form-group notify_typ">
<label>Notification Type <span>*</span></label>
<div class="notify_typ_val">
<div class="checkbox"><label><input type="checkbox" value="1" name="notify_type_push" checked="checked">Push</label></div>
<div class="checkbox"><label><input type="checkbox" value="2" name="notify_type_sms">SMS</label></div>
</div>
</div>
</div>
<div class="col-md-12">
<div class="form-group">
<div class="pull-right"><button type="button" class="btn btn-primary pull-right" onclick="sendNotification();">Send Notification</button></div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</section>
</section>
<!-- content --->