253 lines
15 KiB
HTML
253 lines
15 KiB
HTML
<!-- start: PAGE TITLE -->
|
|
<section id="page-title">
|
|
<div class="row">
|
|
<div class="col-sm-8">
|
|
<h1 class="mainTitle" translate="sidebar.nav.sendSMSPage.MAIN">{{ mainTitle }}</h1>
|
|
</div>
|
|
<div ncy-breadcrumb></div>
|
|
</div>
|
|
</section>
|
|
<!-- end: PAGE TITLE -->
|
|
<!-- start: SEND SMS -->
|
|
<div class="container-fluid container-fullw bg-white">
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<!-- /// controller: 'UserCtrl' - localtion: assets/js/controllers/sendSMSsuperadminCtrl.js /// -->
|
|
<div ng-controller="sendSMSsuperadminCtrl" ng-init="init()">
|
|
<!--<h1>D</h1>-->
|
|
<div class="row">
|
|
<!--<div class="col-md-3">
|
|
<label for="form-field-select-2">
|
|
Select Branch
|
|
</label>
|
|
|
|
<select class="form-control" tabindex="1" class="cs-select cs-skin-elastic" name="branch" required>
|
|
<option value="" disabled selected>Select Branch</option>
|
|
<option ng-repeat="bdata in branchList_data" value="{{bdata.BranchCode}}">{{bdata.BranchName}}</option>
|
|
</select>
|
|
</div>-->
|
|
<div class="col-md-3">
|
|
<label for="form-field-select-2">
|
|
University
|
|
</label>
|
|
|
|
<select class="form-control" tabindex="1" class="cs-select cs-skin-elastic" name="university" ng-model="myUniv" ng-change="getUniveId(myUniv)">
|
|
<option value="" disabled selected>Select University</option>
|
|
<option ng-repeat="item in universityData" value="{{item}}">{{item.UniversityName}}</option>
|
|
</select>
|
|
</div>
|
|
|
|
|
|
<div class="col-md-3">
|
|
<label for="form-field-select-2">
|
|
Course
|
|
</label>
|
|
|
|
<select class="form-control" tabindex="2" class="cs-select cs-skin-elastic" name="course" ng-model="searchData.Course" ng-change="getValueChange()">
|
|
<option value="" selected>Select Course</option>
|
|
<option ng-repeat="itemCourse in courseData" value="{{itemCourse.CourseID}}">{{itemCourse.CourseName}}</option>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="col-md-3">
|
|
<label for="form-field-select-2">
|
|
Batch
|
|
</label>
|
|
|
|
<select class="form-control" tabindex="3" class="cs-select cs-skin-elastic" name="batch" ng-model="searchData.Batch" ng-change="getValueChange()">
|
|
<option value="" selected>Select Batch</option>
|
|
<option ng-repeat="itemBatch in batchData" value="{{itemBatch.BatchCode}}">{{itemBatch.BatchName}}</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<!--<pre>{{ branchList_data }}</pre>-->
|
|
<!--<pre>{{ studentListDetails | json }}</pre>-->
|
|
<!--<pre>{{ searchResultLength }}</pre>-->
|
|
|
|
<div>
|
|
<!--// student search result-->
|
|
<div ng-if="searchLoading === true">
|
|
<!--search loading start-->
|
|
<div style="padding: auto 0; color: #007AFF; font-weight: bold; text-align:center;
|
|
margin-top: 25px;">
|
|
<h4 style="color: inherit">fetching...</h4>
|
|
</div>
|
|
<!--search loading end-->
|
|
</div>
|
|
|
|
<div ng-if="searchLoading === false">
|
|
<div class="col-md-12" ng-if="searchResultStatus == false" style="min-height: 281px;">
|
|
<p style="color: red;" align="center"><strong><h4 class="text-center">No
|
|
records found... </h4></strong></p>
|
|
</div>
|
|
|
|
<div class="col-md-12" ng-if="searchResultStatus == true">
|
|
<div class="col-md-12" ng-if="searchResultLength === 0" style="min-height: 281px;">
|
|
<p style="color: red;" align="center"><strong><h4 class="text-center">No
|
|
records found... </h4></strong></p>
|
|
</div>
|
|
|
|
<div class="table-responsive" ng-if="searchResultLength > 0">
|
|
<!--// search-->
|
|
<div class="container">
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
<label for="form-field-select-2">
|
|
Mobile Number
|
|
</label>
|
|
<script>
|
|
$(function () {
|
|
$("#search").focus();
|
|
});
|
|
</script>
|
|
<style>
|
|
.sort-icon {
|
|
font-size: 9px;
|
|
margin-left: 5px;
|
|
}
|
|
|
|
th {
|
|
cursor: pointer;
|
|
}
|
|
</style>
|
|
<input class="form-control" type="text" ng-change="mySearchChangeFunc(search.MobileNumber)" ng-model="search.MobileNumber"
|
|
id="search" autofocus tabindex="1" placeholder="Search Mobile" /><br><br>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<table class="table table-hover" ng-controller="studentModalDemoCtrl">
|
|
<thead>
|
|
<tr>
|
|
<th>
|
|
<input type="checkbox" ng-hide="allSelectedHide" ng-model="allSelected" ng-change="openUpdateWind()" ng-model-options="{getterSetter: true}"
|
|
ng-click="openScreenSen()"/>
|
|
</th>
|
|
<th ng-click="sort('Firstname')">First Name
|
|
<span class="glyphicon sort-icon" ng-show="sortKey=='Firstname'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>
|
|
</th>
|
|
<th ng-click="sort('Lastname')">Last Name
|
|
<span class="glyphicon sort-icon" ng-show="sortKey=='Lastname'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>
|
|
</th>
|
|
<th ng-click="sort('MobileNumber')">MobileNumber
|
|
<span class="glyphicon sort-icon" ng-show="sortKey=='MobileNumber'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>
|
|
</th>
|
|
<th ng-click="sort('EmailID')">Email ID
|
|
<span class="glyphicon sort-icon" ng-show="sortKey=='EmailID'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>
|
|
</th>
|
|
<th ng-click="sort('CourseName')">Course
|
|
<span class="glyphicon sort-icon" ng-show="sortKey=='CourseName'" ng-class="{'glyphicon-chevron-up':reverse,'glyphicon-chevron-down':!reverse}"></span>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody dir-paginate="p in searchResultDetails|filter:search:strict|orderBy:sortKey:reverse|itemsPerPage:10">
|
|
<tr>
|
|
<td>
|
|
<label>
|
|
<input type="checkbox" ng-model="p.Selected" ng-bind="values = p.StudentID" ng-change="setOneSelect(p)"
|
|
ng-click="openScreenSen()" />
|
|
</label>
|
|
</td>
|
|
<td><a tooltip="View Student" class="text-dark" ng-click="open(p);">{{p.Firstname}}</a></td>
|
|
<td>{{p.Lastname}}</td>
|
|
<td><a tooltip="View Student" class="text-dark" ng-click="open(p);">{{p.MobileNumber}}</a></td>
|
|
<td>{{p.EmailID}}</td>
|
|
<td>{{p.CourseName}}</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
<dir-pagination-controls max-size="10" direction-links="true" boundary-links="true">
|
|
</dir-pagination-controls>
|
|
</div>
|
|
</div>
|
|
|
|
<div ng-if="OpenWindowStatus">
|
|
<style>
|
|
#cancel_button {
|
|
/*line-height: 12px;
|
|
width: 18px;
|
|
font-size: 8pt;
|
|
font-family: tahoma;*/
|
|
margin-top: 1px;
|
|
margin-right: 2px;
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
}
|
|
|
|
.target>div:target {
|
|
display: block;
|
|
}
|
|
</style>
|
|
<div>
|
|
<form name="Form" id="form" novalidate ng-submit="statusUpdate.submit(Form, msg_details)" method="post">
|
|
<div id="bottom1" class="container">
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
<fieldset style="background-color: #eaeaea;">
|
|
<legend>
|
|
SMS Details
|
|
</legend>
|
|
<!--<div>
|
|
<a id="cancel_button" ng-click="unSelect()" tooltip="Close">
|
|
<span class="glyphicon glyphicon-remove-circle"></span>
|
|
</a>
|
|
</div>-->
|
|
|
|
<div class="row">
|
|
<div class="col-md-2"></div>
|
|
<div class="col-md-8 form-group" ng-class="{'has-error':Form.Messagebody.$dirty && Form.Messagebody.$invalid, 'has-success':Form.Messagebody.$valid}">
|
|
<label>
|
|
Message body <span class="symbol required"></span>
|
|
</label>
|
|
|
|
<textarea type="text" placeholder="Enter Message body" tabindex="7" class="form-control" name="Messagebody" ng-model="msg_details.content"
|
|
required/>
|
|
<span class="error text-small block" ng-if="Form.Messagebody.$dirty && Form.Messagebody.$error.pattern">Invalid Message body</span>
|
|
</div>
|
|
<div class="col-md-2"></div>
|
|
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="pull-right">
|
|
<button type="submit" ng-disabled="disableButton" tabindex="8" ladda="ldloading1.zoom_in" class="btn btn-sm btn-success"
|
|
data-style="zoom-in">
|
|
<i class="fa fa-circle-o-notch fa-spin" ng-if="disableButton" style="font-size:14px"></i>
|
|
Submit
|
|
</button>
|
|
<button type="reset" tabindex="9" class="btn btn-warning btn-sm" tabindex="9" ng-click="statusUpdate.reset(Form)">
|
|
Reset
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
|
|
<div class="col-md-3">
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--studen search result end-->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- end: SEND SMS -->
|
|
<section id="page-title">
|
|
<div class="row">
|
|
<!--<div class="col-sm-8">
|
|
<h1 class="mainTitle" translate="sidebar.nav.profile.MAIN">{{ mainTitle }}</h1>
|
|
</div>
|
|
<div ncy-breadcrumb></div>-->
|
|
</div>
|
|
</section> |