Changeset 490 for pro-violet-viettel/sourcecode
- Timestamp:
- Nov 13, 2014 6:27:55 PM (11 years ago)
- Location:
- pro-violet-viettel/sourcecode
- Files:
-
- 3 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/config/database.php
r483 r490 51 51 $db['default']['hostname'] = 'mysql:host=127.0.0.1'; 52 52 $db['default']['username'] = 'root';//sbg 53 $db['default']['password'] = ' 123456';//sbg~~!!@@12353 $db['default']['password'] = 'Quyenhue@123';//sbg~~!!@@123 54 54 $db['default']['database'] = 'violet-viettel'; 55 55 $db['default']['dbdriver'] = 'pdo'; -
pro-violet-viettel/sourcecode/application/modules/frontend/controllers/lecture.php
r483 r490 21 21 $aryParams = array(); 22 22 parse_str($user_info['user'], $aryParams); 23 $licenseAvailable = $this->User_model->checkLicense($aryParams['id']); 24 $licenseAvailable = $licenseAvailable == TRUE ? 'OK': '!OK'; 25 23 $licenseAvailable = $this->User_model->checkLicense($aryParams['id']); 24 $licenseAvailable = $licenseAvailable == TRUE ? 'OK': '!OK'; 26 25 if ($user_info){ 27 26 $username = $user_info['username']; -
pro-violet-viettel/sourcecode/application/modules/frontend/controllers/user.php
r475 r490 17 17 if ($user_info) 18 18 { 19 $this->load->model('servicepackage_model'); 19 20 $user = $user_info['user']; 20 21 $us_id = $user_info['us_id']; … … 22 23 $token = md5($us_id.self::TOKENPW); 23 24 $data = $this->get_data($src, $token, $us_id); 24 $this->load->view('frontend/user_profile', $data); 25 $data['packages'] =$this->servicepackage_model->getAllPackages(); 26 $this->load->view('frontend/user_profile', $data); 25 27 26 28 }else … … 29 31 } 30 32 } 31 33 public function packageRegister() 34 { 35 $result=array(); 36 $input=$this->input->post(); 37 $user_info = $this->session->userdata('userInfo'); 38 if ($user_info) 39 { 40 $this->load->model('servicepackage_model'); 41 $this->load->model('user_model'); 42 $package=$this->servicepackage_model->getPackage($input['p_id']); 43 $user = $user_info['user']; 44 $us_id = $user_info['us_id']; 45 $user = $this->user_model->get_user_by_id($us_id); 46 $result['user']=$user; 47 $result['package']=$package; 48 $result['modal']=$this->load->view('frontend/package_register_modal', $result,true); 49 }else 50 { 51 52 } 53 echo json_encode($result); 54 } 32 55 private function get_data($src, $token, $us_id) 33 56 { -
pro-violet-viettel/sourcecode/application/modules/frontend/views/lecture_editor.php
r483 r490 36 36 </a> 37 37 </div><!-- /.main-container --> 38 38 39 <script type="text/javascript"> 40 var licenseAvailable = "<?php echo $licenseAvailable;?>"; 41 var url= "<?php echo base_url();?>"; 42 </script> 39 43 <?php 40 44 $this->load->view('servicemodals'); 41 45 $this->load->view('layout/frontend/footer', array('usjs'=> array('assets/js/frontend/lecture.js'))); 42 46 ?> 47 -
pro-violet-viettel/sourcecode/application/modules/frontend/views/user_profile.php
r482 r490 1 1 <?php 2 2 $base_url = base_url(); 3 $this->load->view('layout/frontend/header', array('base_url' => $base_url, '$username' =>@$username));3 $this->load->view('layout/frontend/header', array('base_url' => $base_url, '$username' => @$username)); 4 4 $this->load->view('layout/frontend/sidebar', array('base_url' => $base_url)); 5 5 /* 6 $this->load->view('layout/frontend/header', array('base_url'=>base_url(), '$username'=>$username));7 $base_url = base_url();8 $this->load->view('layout/frontend/sidebar', array('base_url'=>base_url()));*/6 $this->load->view('layout/frontend/header', array('base_url'=>base_url(), '$username'=>$username)); 7 $base_url = base_url(); 8 $this->load->view('layout/frontend/sidebar', array('base_url'=>base_url())); */ 9 9 ?> 10 10 <div class="main-content"> 11 11 12 <div class="page-content"> 13 <div class="page-header"> 14 <h1> 15 ThÃŽng tin cá nhân 16 <small> 17 <i class="icon-double-angle-right"></i> 18 <?php echo @$username; ?> 19 </small> 20 </h1> 21 </div><!-- /.page-header --> 22 23 <div class="row"> 24 <div class="col-xs-12"> 25 <!-- PAGE CONTENT BEGINS --> 26 <div class="user-profile row" id="user-profile-3"> 27 <div class="col-sm-offset-1 col-sm-10"> 28 29 <div class="tabbable"> 30 <ul class="nav nav-tabs padding-16"> 31 <li class="active"> 32 <a href="#edit-basic" data-toggle="tab"> 33 <i class="green icon-edit bigger-125"></i> 34 ThÃŽng tin cá nhân 35 </a> 36 </li> 37 38 <li> 39 <a href="#edit-password" data-toggle="tab"> 40 <i class="blue icon-key bigger-125"></i> 41 Äá»i máºt khẩu 42 </a> 43 </li> 44 45 <li> 46 <a href="#account-info" data-toggle="tab"> 47 <img src="<?php echo $base_url; ?>assets/img/payment.png" width="16" class="img-responsive pull-left"> 48 ThÃŽng tin tà i khoản 49 </a> 50 </li> 51 </ul> 52 53 <div class="tab-content profile-edit-tab-content"> 54 <div class="tab-pane in active" id="edit-basic"> 55 <form id="frm1" role="form" class="form-horizontal"> 56 <h4 class="header blue bolder smaller">ThÃŽng tin chung</h4> 57 58 <div class="row"> 59 60 <div class="vspace-xs"></div> 61 62 <div class="col-xs-12 col-sm-8"> 63 <div class="form-group"> 64 <label for="form-field-username" class="col-sm-4 control-label no-padding-right">Tà i khoản</label> 65 66 <div class="col-sm-8"> 67 <input type="text" name="username" value="<?php echo @$username; ?>" placeholder="Tà i khoản" id="form-field-username" class="col-xs-12 col-sm-10" disabled> 68 </div> 69 </div> 70 71 <div class="space-4"></div> 72 73 <div class="form-group"> 74 <label for="form-field-first" class="col-sm-4 control-label no-padding-right">Há» tên</label> 75 76 <div class="col-sm-8"> 77 <input type="text" name="fullname" value="<?php echo @$fullname; ?>" placeholder="Há»" id="form-field-first" class="col-xs-12 col-sm-10" disabled> 78 79 </div> 80 </div> 81 82 <div class="space-4"></div> 83 84 <div class="form-group"> 85 <label for="form-field-username" class="col-sm-4 control-label no-padding-right">ÄÆ¡n vá»</label> 86 87 <div class="col-sm-8"> 88 <input type="text" name="school" value="<?php echo @$school; ?>" placeholder="ÄÆ¡n vá»" id="form-field-username" class="col-xs-12 col-sm-10"> 89 </div> 90 </div> 91 92 <div class="space-4"></div> 93 94 <div class="form-group"> 95 <label for="form-field-username" class="col-sm-4 control-label no-padding-right">Tá»nh / Thà nh phá»</label> 96 97 <div class="col-sm-8"> 98 <input type="text" name="province" value="<?php echo @$province; ?>" placeholder="Tá»nh / Thà nh phá»" id="form-field-username" class="col-xs-12 col-sm-10"> 99 </div> 100 </div> 101 102 </div> 103 </div> 104 105 <hr> 106 107 <div class="space-4"></div> 108 109 <div class="form-group"> 110 <label class="col-sm-3 control-label no-padding-right">Giá»i tÃnh</label> 111 112 <div class="col-sm-9"> 113 <label class="inline"> 114 <input type="radio" <?php if(@$gender=="male") echo "checked"; ?> class="ace" name="gender" value="male"> 115 <span class="lbl"> Nam</span> 116 </label> 117 118 119 <label class="inline"> 120 <input type="radio" <?php if(@$gender=="female") echo "checked"; ?> class="ace" name="gender" value="female"> 121 <span class="lbl"> Nữ</span> 122 </label> 123 </div> 124 </div> 125 126 <div class="space"></div> 127 <h4 class="header blue bolder smaller">ThÃŽng tin liên há»</h4> 128 129 <div class="form-group"> 130 <label for="form-field-email" class="col-sm-3 control-label no-padding-right">Email</label> 131 132 <div class="col-sm-9"> 133 <label class="block clearfix has-error"> 134 <span class="input-icon input-icon-right"> 135 <input name="email" type="email" value="<?php echo @$email; ?>" id="form-field-email"> 136 <i class="icon-envelope"></i> 137 </span> 138 <div class="help-block" id="email_err"> </div> 139 </label> 140 </div> 141 </div> 142 143 <div class="clearfix form-actions"> 144 <div class="col-md-offset-3 col-md-9"> 145 <button type="button" onclick="return updateInfo(<?php echo @$us_id; ?>);" class="btn btn-info"> 146 <i class="icon-ok bigger-110"></i> 147 Cáºp nháºt 148 </button> 149 </div> 150 </div> 151 </form> 152 </div> 153 154 155 <div class="tab-pane" id="edit-password"> 156 <div class="alert alert-block alert-success"> 157 <p> 158 Quà vá» có thá» thay Äá»i máºt khẩu bằng cách dùng sá» Äiá»n thoại [SoDTKhachhang] và soạn tin theo cú pháp: <strong>SBG MK [matkhaumoi] gá»i tá»i 8062</strong>. <br/> 159 Äá» lấy lại máºt khẩu cá»§a mình trên há» thá»ng SBG Online, quà vá» hãy dùng sá» Äiá»n thoại Äã ÄÄng kà tà i khoản và soạn tin theo cú pháp: <strong>SBG MK gá»i tá»i 8062</strong>. 160 </p> 161 </div> 162 </div> 163 164 <div class="tab-pane" id="account-info"> 165 <form id="frm3" class="form-horizontal" role="form"> 166 <h4 class="header blue bolder smaller">ThÃŽng tin tà i khoản</h4> 167 <div class="col-sm-6"> 168 <h4>Sá» tiá»n </h4> <h3><?php echo number_format(@$acc_balanced, 0); ?> VND</h3> 169 </div> 170 <div class="col-sm-6"> 171 <h4>Thá»i bạn sá» dụng </h4> <h3><?php echo $expire_date; ?> <span class="badge"><?php echo $date_diff; ?></span></h3> 172 </div> 173 174 <h4 class="header blue bolder smaller">Nạp tiá»n bằng thẻ cà o</h4> 175 <div class="col-sm-8"> 176 <div class="form-group"> 177 <label for="form-field-pass1" class="col-sm-2 control-label no-padding-right">Mã thẻ</label> 178 179 <div class="col-sm-10"> 180 <input type="text" id="form-field-pass1" class="form-control"> 181 </div> 182 </div> 183 184 <div class="space-4"></div> 185 186 <div class="form-group"> 187 <label for="form-field-pass2" class="col-sm-2 control-label no-padding-right">Serial</label> 188 189 <div class="col-sm-10"> 190 <input type="text" id="form-field-pass2" class="form-control"> 191 </div> 192 </div> 193 </div> 194 <div class="col-sm-4"> 195 <button type="button" class="btn btn-success" data-toggle="modal" data-target="#alert-payment"> 196 <i class="icon-ok bigger-110"></i> 197 Tiếp tục 198 </button> 199 <div class="space-4"></div> 200 <a href="#" data-toggle="modal" data-target="#trade-history"><i class="icon-archive"></i> Lá»ch sá» giao dá»ch</a> 201 </div> 202 <div class="clearfix"> 203 204 </div> 205 <h4 class="header blue bolder smaller">Nạp tiá»n bằng tà i khoản gá»c</h4> 206 <div class="alert alert-block alert-success"> 207 <p> 208 Sá» dụng thuê bao <strong>016825764</strong> soạn tin nhắn: <strong>SBG NAP [sotien] gá»i 8062</strong>. <br/> 209 Nếu quà vá» sá» dụng thuê bao Viettel khác thì soạn tin nhắn: <strong>SBG NAP [tentruynhap] 210 [sotien] gá»i tá»i 8062</strong>. 211 </p> 212 </div> 213 </form> 214 </div> 215 216 </div> 217 </div> 218 </div><!-- /span --> 219 </div> 220 221 <!-- PAGE CONTENT ENDS --> 222 </div><!-- /.col --> 223 </div><!-- /.row --> 224 </div><!-- /.page-content --> 12 <div class="page-content"> 13 <div class="page-header"> 14 <h1> 15 ThÃŽng tin cá nhân 16 <small> 17 <i class="icon-double-angle-right"></i> 18 <?php echo @$username; ?> 19 </small> 20 </h1> 21 </div><!-- /.page-header --> 22 23 <div class="row"> 24 <div class="col-xs-12"> 25 <!-- PAGE CONTENT BEGINS --> 26 <div class="user-profile row" id="user-profile-3"> 27 <div class="col-sm-offset-1 col-sm-10"> 28 29 <div class="tabbable"> 30 <ul class="nav nav-tabs padding-16"> 31 <li class="active"> 32 <a href="#edit-basic" data-toggle="tab"> 33 <i class="green icon-edit bigger-125"></i> 34 ThÃŽng tin cá nhân 35 </a> 36 </li> 37 38 <li> 39 <a href="#edit-password" data-toggle="tab"> 40 <i class="blue icon-key bigger-125"></i> 41 Äá»i máºt khẩu 42 </a> 43 </li> 44 45 <li> 46 <a href="#account-info" data-toggle="tab"> 47 <img src="<?php echo $base_url; ?>assets/img/payment.png" width="16" class="img-responsive pull-left"> 48 ThÃŽng tin tà i khoản 49 </a> 50 </li> 51 <li> 52 <a href="#services-register" data-toggle="tab"> 53 <i class="blue icon-cog bigger-125"></i> 54 ÄÄng kÜ dá»ch vụ 55 </a> 56 </li> 57 </ul> 58 59 <div class="tab-content profile-edit-tab-content"> 60 <div class="tab-pane in active" id="edit-basic"> 61 <form id="frm1" role="form" class="form-horizontal"> 62 <h4 class="header blue bolder smaller">ThÃŽng tin chung</h4> 63 64 <div class="row"> 65 66 <div class="vspace-xs"></div> 67 68 <div class="col-xs-12 col-sm-8"> 69 <div class="form-group"> 70 <label for="form-field-username" class="col-sm-4 control-label no-padding-right">Tà i khoản</label> 71 72 <div class="col-sm-8"> 73 <input type="text" name="username" value="<?php echo @$username; ?>" placeholder="Tà i khoản" id="form-field-username" class="col-xs-12 col-sm-10" disabled> 74 </div> 75 </div> 76 77 <div class="space-4"></div> 78 79 <div class="form-group"> 80 <label for="form-field-first" class="col-sm-4 control-label no-padding-right">Há» tên</label> 81 82 <div class="col-sm-8"> 83 <input type="text" name="fullname" value="<?php echo @$fullname; ?>" placeholder="Há»" id="form-field-first" class="col-xs-12 col-sm-10" disabled> 84 85 </div> 86 </div> 87 88 <div class="space-4"></div> 89 90 <div class="form-group"> 91 <label for="form-field-username" class="col-sm-4 control-label no-padding-right">ÄÆ¡n vá»</label> 92 93 <div class="col-sm-8"> 94 <input type="text" name="school" value="<?php echo @$school; ?>" placeholder="ÄÆ¡n vá»" id="form-field-username" class="col-xs-12 col-sm-10"> 95 </div> 96 </div> 97 98 <div class="space-4"></div> 99 100 <div class="form-group"> 101 <label for="form-field-username" class="col-sm-4 control-label no-padding-right">Tá»nh / Thà nh phá»</label> 102 103 <div class="col-sm-8"> 104 <input type="text" name="province" value="<?php echo @$province; ?>" placeholder="Tá»nh / Thà nh phá»" id="form-field-username" class="col-xs-12 col-sm-10"> 105 </div> 106 </div> 107 108 </div> 109 </div> 110 111 <hr> 112 113 <div class="space-4"></div> 114 115 <div class="form-group"> 116 <label class="col-sm-3 control-label no-padding-right">Giá»i tÃnh</label> 117 118 <div class="col-sm-9"> 119 <label class="inline"> 120 <input type="radio" <?php if (@$gender == "male") echo "checked"; ?> class="ace" name="gender" value="male"> 121 <span class="lbl"> Nam</span> 122 </label> 123 124 125 <label class="inline"> 126 <input type="radio" <?php if (@$gender == "female") echo "checked"; ?> class="ace" name="gender" value="female"> 127 <span class="lbl"> Nữ</span> 128 </label> 129 </div> 130 </div> 131 132 <div class="space"></div> 133 <h4 class="header blue bolder smaller">ThÃŽng tin liên há»</h4> 134 135 <div class="form-group"> 136 <label for="form-field-email" class="col-sm-3 control-label no-padding-right">Email</label> 137 138 <div class="col-sm-9"> 139 <label class="block clearfix has-error"> 140 <span class="input-icon input-icon-right"> 141 <input name="email" type="email" value="<?php echo @$email; ?>" id="form-field-email"> 142 <i class="icon-envelope"></i> 143 </span> 144 <div class="help-block" id="email_err"> </div> 145 </label> 146 </div> 147 </div> 148 149 <div class="clearfix form-actions"> 150 <div class="col-md-offset-3 col-md-9"> 151 <button type="button" onclick="return updateInfo(<?php echo @$us_id; ?>);" class="btn btn-info"> 152 <i class="icon-ok bigger-110"></i> 153 Cáºp nháºt 154 </button> 155 </div> 156 </div> 157 </form> 158 </div> 159 160 161 <div class="tab-pane" id="edit-password"> 162 <div class="alert alert-block alert-success"> 163 <p> 164 Quà vá» có thá» thay Äá»i máºt khẩu bằng cách dùng sá» Äiá»n thoại [SoDTKhachhang] và soạn tin theo cú pháp: <strong>SBG MK [matkhaumoi] gá»i tá»i 8062</strong>. <br/> 165 Äá» lấy lại máºt khẩu cá»§a mình trên há» thá»ng SBG Online, quà vá» hãy dùng sá» Äiá»n thoại Äã ÄÄng kà tà i khoản và soạn tin theo cú pháp: <strong>SBG MK gá»i tá»i 8062</strong>. 166 </p> 167 </div> 168 </div> 169 170 <div class="tab-pane" id="account-info"> 171 <form id="frm3" class="form-horizontal" role="form"> 172 <h4 class="header blue bolder smaller">ThÃŽng tin tà i khoản</h4> 173 <div class="col-sm-6"> 174 <h4>Sá» tiá»n </h4> <h3><?php echo number_format(@$acc_balanced, 0); ?> VND</h3> 175 </div> 176 <div class="col-sm-6"> 177 <h4>Thá»i bạn sá» dụng </h4> <h3><?php echo $expire_date; ?> <span class="badge"><?php echo $date_diff; ?></span></h3> 178 </div> 179 180 <h4 class="header blue bolder smaller">Nạp tiá»n bằng thẻ cà o</h4> 181 <div class="col-sm-8"> 182 <div class="form-group"> 183 <label for="form-field-pass1" class="col-sm-2 control-label no-padding-right">Mã thẻ</label> 184 185 <div class="col-sm-10"> 186 <input type="text" id="form-field-pass1" class="form-control"> 187 </div> 188 </div> 189 190 <div class="space-4"></div> 191 192 <div class="form-group"> 193 <label for="form-field-pass2" class="col-sm-2 control-label no-padding-right">Serial</label> 194 195 <div class="col-sm-10"> 196 <input type="text" id="form-field-pass2" class="form-control"> 197 </div> 198 </div> 199 </div> 200 <div class="col-sm-4"> 201 <button type="button" class="btn btn-success" data-toggle="modal" data-target="#alert-payment"> 202 <i class="icon-ok bigger-110"></i> 203 Tiếp tục 204 </button> 205 <div class="space-4"></div> 206 <a href="#" data-toggle="modal" data-target="#trade-history"><i class="icon-archive"></i> Lá»ch sá» giao dá»ch</a> 207 </div> 208 <div class="clearfix"> 209 210 </div> 211 <h4 class="header blue bolder smaller">Nạp tiá»n bằng tà i khoản gá»c</h4> 212 <div class="alert alert-block alert-success"> 213 <p> 214 Sá» dụng thuê bao <strong>016825764</strong> soạn tin nhắn: <strong>SBG NAP [sotien] gá»i 8062</strong>. <br/> 215 Nếu quà vá» sá» dụng thuê bao Viettel khác thì soạn tin nhắn: <strong>SBG NAP [tentruynhap] 216 [sotien] gá»i tá»i 8062</strong>. 217 </p> 218 </div> 219 </form> 220 </div> 221 <div class="tab-pane" id="services-register"> 222 <form action="<?php echo base_url();?>frontend/user/packageRegister" class="form-horizontal" id="package_register"> 223 <h4 class="header blue bolder smaller">ThÃŽng tin tà i khoản</h4> 224 <div class="col-sm-6"> 225 <h4>Sá» tiá»n </h4> <h3><?php echo number_format(@$acc_balanced, 0); ?> VND</h3> 226 </div> 227 <div class="col-sm-6"> 228 <h4>Thá»i bạn sá» dụng </h4> <h3><?php echo $expire_date; ?> <span class="badge"><?php echo $date_diff; ?></span></h3> 229 </div> 230 <h4 class="header blue bolder smaller">ÄÄng kÜ dá»ch vụ</h4> 231 <h5>Cách 1: Má»i quà vá» chá»n các gói dá»ch vụ sau</h5> 232 <div class="errors" id="package_register"> 233 234 </div> 235 <div class="alert alert-block alert-success"> 236 <table class="table"> 237 <tbody> 238 <?php foreach ($packages as $index=>$package) 239 { 240 ?> 241 <tr> 242 <td><?php echo $package['p_name'];?></td> 243 <td><?php echo number_format($package['p_price'], 0); ?> VNÄ</td> 244 <td class="center"> 245 <label> 246 <input <?php if($index==0) {echo "checked='checked'";}?> type="radio" value="<?php echo $package['p_id'];?>" name="p_id" class="ace" /> 247 <span class="lbl"></span> 248 </label> 249 </td> 250 </tr> 251 <?php } ?> 252 253 </tbody> 254 </table> 255 <button type="submit" class="btn btn-success">ÄÄng kÜ</button> 256 </div> 257 <h5>Cách 2</h5> 258 <h4>Soạn tin: SBG DK 1 (hay 3, 6, 12) gá»i tá»i 8062</h4> 259 </form> 260 </div> 261 262 </div> 263 </div> 264 </div><!-- /span --> 265 </div> 266 267 <!-- PAGE CONTENT ENDS --> 268 </div><!-- /.col --> 269 </div><!-- /.row --> 270 </div><!-- /.page-content --> 225 271 </div><!-- /.main-content --> 226 272 </div><!-- /.main-container-inner --> 227 273 228 274 <a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse"> 229 <i class="icon-double-angle-up icon-only bigger-110"></i>275 <i class="icon-double-angle-up icon-only bigger-110"></i> 230 276 </a> 231 277 </div><!-- /.main-container --> 232 278 233 279 <div class="modal fade" id="trade-history" tabindex="-1" role="dialog"aria-hidden="true"> 234 <div class="modal-dialog"> 235 <div class="modal-content"> 236 <div class="modal-header"> 237 <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> 238 <h4 class="modal-title">Lá»ch sá» giao dá»ch</h4> 280 <div class="modal-dialog"> 281 <div class="modal-content"> 282 <div class="modal-header"> 283 <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> 284 <h4 class="modal-title">Lá»ch sá» giao dá»ch</h4> 285 </div> 286 <div class="modal-body"> 287 <div class="table-responsive"> 288 <table id="sample-table-1" class="table table-striped table-bordered table-hover"> 289 <thead> 290 <tr> 291 <th class="center"> 292 <label> 293 <input type="checkbox" class="ace" /> 294 <span class="lbl"></span> 295 </label> 296 </th> 297 <th>Sá» tiá»n</th> 298 299 <th> 300 <i class="icon-time bigger-110 hidden-480"></i> 301 Thá»i gian 302 </th> 303 </tr> 304 </thead> 305 306 <tbody> 307 <tr> 308 <td class="center"> 309 <label> 310 <input type="checkbox" class="ace" /> 311 <span class="lbl"></span> 312 </label> 313 </td> 314 <td>$45</td> 315 <td>Feb 12</td> 316 </tr> 317 </tbody> 318 </table> 319 </div><!-- /.table-responsive --> 320 </div> 321 </div> 322 </div> 239 323 </div> 240 <div class="modal-body"> 241 <div class="table-responsive"> 242 <table id="sample-table-1" class="table table-striped table-bordered table-hover"> 243 <thead> 244 <tr> 245 <th class="center"> 246 <label> 247 <input type="checkbox" class="ace" /> 248 <span class="lbl"></span> 249 </label> 250 </th> 251 <th>Sá» tiá»n</th> 252 253 <th> 254 <i class="icon-time bigger-110 hidden-480"></i> 255 Thá»i gian 256 </th> 257 </tr> 258 </thead> 259 260 <tbody> 261 <tr> 262 <td class="center"> 263 <label> 264 <input type="checkbox" class="ace" /> 265 <span class="lbl"></span> 266 </label> 267 </td> 268 <td>$45</td> 269 <td>Feb 12</td> 270 </tr> 271 </tbody> 272 </table> 273 </div><!-- /.table-responsive --> 324 325 <div class="modal fade" id="alert-payment" tabindex="-1" role="dialog"aria-hidden="true"> 326 <div class="modal-dialog"> 327 <div class="modal-content"> 328 <div class="modal-header"> 329 <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> 330 <h4 class="modal-title">ThÃŽng báo dá»ch vụ</h4> 331 </div> 332 <div class="modal-body"> 333 <div class="alert alert-block alert-success"> 334 <p> 335 Quà vá» Äã nạp thà nh cÃŽng <b>10.000 </b>VND và o tà i khoản <b>0168942155</b>, tà i khoản hiá»n tại cá»§a quà vá» là <b>20.000 </b>VND. 336 </p> 337 </div> 338 </div> 339 </div> 340 </div> 274 341 </div> 342 343 <div class="modal fade" id="package_register_modal" tabindex="-1" role="dialog"aria-hidden="true"> 344 <div class="modal-dialog"> 345 <div class="modal-content"> 346 <div class="modal-header"> 347 <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> 348 <h4 class="modal-title">ÄÄng kÜ gói dá»ch vụ</h4> 349 </div> 350 <div class="modal-body"> 351 <div class="alert alert-block alert-success"> 352 353 </div> 354 </div> 355 </div> 356 </div> 275 357 </div> 276 </div> 277 </div> 278 279 <div class="modal fade" id="alert-payment" tabindex="-1" role="dialog"aria-hidden="true"> 280 <div class="modal-dialog"> 281 <div class="modal-content"> 282 <div class="modal-header"> 283 <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> 284 <h4 class="modal-title">ThÃŽng báo dá»ch vụ</h4> 285 </div> 286 <div class="modal-body"> 287 <div class="alert alert-block alert-success"> 288 <p> 289 Quà vá» Äã nạp thà nh cÃŽng <b>10.000 </b>VND và o tà i khoản <b>0168942155</b>, tà i khoản hiá»n tại cá»§a quà vá» là <b>20.000 </b>VND. 290 </p> 291 </div> 292 </div> 293 </div> 294 </div> 295 </div> 296 358 359 360 297 361 <?php 298 362 $this->load->view('layout/frontend/footer', array('base_url' => $base_url, 'usjs' => array('assets/js/frontend/user.js'))); -
pro-violet-viettel/sourcecode/application/views/layout/frontend/sidebar.php
r480 r490 42 42 </a> 43 43 </li--> 44 <li> 45 <a class="animate" href="<?php echo $base_url;?>frontend/user/profile#services-register"> 46 <span class="desc animate"> Thanh toán </span> 47 <img width="28" class="img-responsive pull-right" src="<?php echo $base_url;?>assets/img/payment.png"> 48 </a> 49 </li> 44 50 <li> 45 51 <a href="<?php echo $base_url;?>frontend/user/profile" class="animate"> -
pro-violet-viettel/sourcecode/assets/js/frontend/lecture.js
r483 r490 1 function showModal() {2 console.log('Show modal!');3 $('#alert-services').modal('show');4 }5 6 $('#services-reg').click(function() {7 $('#alert-services').modal('hide');8 $('#alert-services-reg').modal('show');9 });10 $('#services-sign').click(function() {11 $('#alert-services-reg').modal('hide');12 $('#alert-services-reg-2').modal('show');13 })14 15 var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;16 var g_Flash = null;17 var g_cbData = "";18 19 function InitViolet() {20 g_Flash = document.getElementById('LectorEditorOnline');21 //g_Flash = $('#LectorEditorOnline');22 //g_Flash = isInternetExplorer ? LectorEditorOnline : document.LectorEditorOnline;23 };24 25 function GetClipboardItem() {26 var cbData = window.clipboardData? window.clipboardData.getData('Text'): g_cbData;27 g_Flash.SetVariable("clipboardData", cbData);28 g_Flash.SetVariable("command", "Get Text");29 };30 31 function SetClipboardItem(args) {32 if (window.clipboardData) window.clipboardData.setData('Text', args);33 else g_cbData = args;34 g_Flash.SetVariable("command", "Set OK");35 };36 37 function SetWindowTitle(fileName) {38 if (fileName == "") document.title = "Violet Online";39 else {40 var docName = fileName.substring(0, fileName.length - 4);41 document.title = "Violet Online - " + docName;42 }43 };44 45 function SetWindowState() {46 var full = (g_Flash.width == "100%");47 g_Flash.width = full? "800": "100%";48 g_Flash.height = full? "580": "100%";49 };50 51 // Handle all the FSCommand messages in a Flash movie.52 function LectorEditorOnline_DoFSCommand(command, args) {53 switch (command) {54 case "Set Title": SetWindowTitle(args); break;55 case "Get Clipboard": GetClipboardItem(); break;56 case "Set Clipboard": SetClipboardItem(args); break;57 case "Set State": SetWindowState(); break;58 case "Quit": window.open('','_self').close(); break;59 case "trace": alert(args); break;60 case "Check License": showModal(); break;61 }62 };63 64 // Hook for Internet Explorer.65 if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {66 document.write('<script language=\"VBScript\"\>\n');67 document.write('On Error Resume Next\n');68 document.write('Sub LectorEditorOnline_FSCommand(ByVal command, ByVal args)\n');69 document.write(' Call LectorEditorOnline_DoFSCommand(command, args)\n');70 document.write('End Sub\n');71 document.write('</script\>\n');72 };73 1 74 $(document).ready(function(){ 75 InitViolet(); 76 }) 2 if (licenseAvailable == "!OK") 3 { 4 showModal(); 5 var ck = document.cookie; 6 7 if (document.cookie.indexOf("open") >= 0) { 8 } 9 else 10 { 11 showModal(); 12 document.cookie = "open=1"; 13 } 14 15 } 16 17 function showModal() { 18 console.log('Show modal!'); 19 $('#alert-services').modal('show'); 20 } 21 22 $('#services-reg').click(function () { 23 window.location=url+"frontend/user/profile#services-register"; 24 $('#alert-services').modal('hide'); 25 // $('#alert-services-reg').modal('show'); 26 }); 27 $('#services-sign').click(function () { 28 $('#alert-services-reg').modal('hide'); 29 $('#alert-services-reg-2').modal('show'); 30 }) 31 32 var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1; 33 var g_Flash = null; 34 var g_cbData = ""; 35 36 function InitViolet() { 37 g_Flash = document.getElementById('LectorEditorOnline'); 38 //g_Flash = $('#LectorEditorOnline'); 39 //g_Flash = isInternetExplorer ? LectorEditorOnline : document.LectorEditorOnline; 40 } 41 ; 42 43 function GetClipboardItem() { 44 var cbData = window.clipboardData ? window.clipboardData.getData('Text') : g_cbData; 45 g_Flash.SetVariable("clipboardData", cbData); 46 g_Flash.SetVariable("command", "Get Text"); 47 } 48 ; 49 50 function SetClipboardItem(args) { 51 if (window.clipboardData) 52 window.clipboardData.setData('Text', args); 53 else 54 g_cbData = args; 55 g_Flash.SetVariable("command", "Set OK"); 56 } 57 ; 58 59 function SetWindowTitle(fileName) { 60 if (fileName == "") 61 document.title = "Violet Online"; 62 else { 63 var docName = fileName.substring(0, fileName.length - 4); 64 document.title = "Violet Online - " + docName; 65 } 66 } 67 ; 68 69 function SetWindowState() { 70 var full = (g_Flash.width == "100%"); 71 g_Flash.width = full ? "800" : "100%"; 72 g_Flash.height = full ? "580" : "100%"; 73 } 74 ; 75 76 // Handle all the FSCommand messages in a Flash movie. 77 function LectorEditorOnline_DoFSCommand(command, args) { 78 switch (command) { 79 case "Set Title": 80 SetWindowTitle(args); 81 break; 82 case "Get Clipboard": 83 GetClipboardItem(); 84 break; 85 case "Set Clipboard": 86 SetClipboardItem(args); 87 break; 88 case "Set State": 89 SetWindowState(); 90 break; 91 case "Quit": 92 window.open('', '_self').close(); 93 break; 94 case "trace": 95 alert(args); 96 break; 97 case "Check License": 98 showModal(); 99 break; 100 } 101 } 102 ; 103 104 // Hook for Internet Explorer. 105 if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) { 106 document.write('<script language=\"VBScript\"\>\n'); 107 document.write('On Error Resume Next\n'); 108 document.write('Sub LectorEditorOnline_FSCommand(ByVal command, ByVal args)\n'); 109 document.write(' Call LectorEditorOnline_DoFSCommand(command, args)\n'); 110 document.write('End Sub\n'); 111 document.write('</script\>\n'); 112 } 113 ; 114 115 $(document).ready(function () { 116 InitViolet(); 117 }) -
pro-violet-viettel/sourcecode/assets/js/frontend/user.js
r466 r490 21 21 }); 22 22 } 23 $( "#package_register" ).submit(function( event ) 24 { 25 $.ajax({ 26 url: $(this).attr("action"), 27 type: "POST", 28 data: $("#package_register").serialize(), 29 success: function (data, textStatus, jqXHR) 30 { 31 32 var results= jQuery.parseJSON(data); 33 $('#package_register_modal').replaceWith(results.modal); 34 $('#package_register_modal').modal('show'); 35 }, 36 error: function (jqXHR, textStatus, errorThrown) 37 { 38 $(".ajaxloading").hide(); 39 } 40 }); 41 event.preventDefault(); 42 });
Note: See TracChangeset
for help on using the changeset viewer.