Changeset 654
- Timestamp:
- Dec 8, 2014 5:28:47 PM (10 years ago)
- Location:
- pro-violet-viettel/sourcecode
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-violet-viettel/sourcecode/application/language/message/messages_lang.php
r652 r654 38 38 $lang['_SBG_USER_INFO_REQUIRED_MSG'] = 'QuÜ vá» hãy nháºp thÃŽng tin cá nhân Äá» có thá» sá» dụng dá»ch vụ.'; 39 39 $lang['_SBG_USER_UNREGISTERING_SERVICE_MSG'] = 'QuÜ vá» chưa ÄÄng kÜ sá» dụng dá»ch vụ Soạn Bà i giảng online. QuÜ vá» có thá» dùng thá» dá»ch vụ Soạn Bà i giảng online trưá»c khi ÄÄng kÜ.'; 40 $lang['_SBG_USER_TRIAL_SERVICE_MSG'] = 'QuÜ vá» Äang sá» dụng gói dùng thá» cá»§a dá»ch vụ Soạn Bà i giảng online. QuÜ vá» có thá» dùng thá» dá»ch vụ Soạn Bà i giảng online cho Äến hết ngà y '; 40 41 41 42 -
pro-violet-viettel/sourcecode/application/modules/frontend/controllers/lecture.php
r580 r654 25 25 $licenseAvailable = $this->User_model->checkLicense($aryParams['id']); 26 26 $licenseAvailable = $licenseAvailable == TRUE ? 'OK' : '!OK'; 27 27 28 28 if ($user_info) { 29 29 $username = $user_info['username']; … … 34 34 $user = $user_info['user']; 35 35 $us_id = $user_info['us_id']; 36 $u = $this->user_model->get_user_by_id($us_id); 36 $u = $this->user_model->get_user_by_id($us_id); 37 $info['fullname']=""; 37 38 if (($info['fullname']=="")&&($u['p_id']!="")) 38 39 { … … 44 45 $first_visit=1; 45 46 } 46 $this->load->view('lecture_editor', array('username' => $username, 'licenseAvailable' => $licenseAvailable, 'first_visit' => $first_visit, 'licflashVars' => $aryParams,'update_user_info'=>$update_user_info,'us_id'=>$us_id ));47 $this->load->view('lecture_editor', array('username' => $username, 'licenseAvailable' => $licenseAvailable, 'first_visit' => $first_visit, 'licflashVars' => $aryParams,'update_user_info'=>$update_user_info,'us_id'=>$us_id,"p_id"=>$u['p_id'],"expire_date"=>date("d-m-Y", strtotime($u['expire_date'])))); 47 48 } else { 48 49 redirect('/frontend/home/'); -
pro-violet-viettel/sourcecode/application/modules/frontend/models/servicepackage_model.php
r501 r654 18 18 { 19 19 $this->db->query('UNLOCK TABLES'); 20 $sql="SELECT * FROM ".$this->table_name." ";20 $sql="SELECT * FROM ".$this->table_name." WHERE p_period > 0"; 21 21 return $this->db->query($sql)->result_array(); 22 22 } -
pro-violet-viettel/sourcecode/application/modules/frontend/models/user_model.php
r652 r654 86 86 $user ['created_time'] = date ( 'Y-m-d H:i:s' ); 87 87 $user ['us_id'] = $us_id; 88 $user ['p_id'] = 5; 89 $user['expire_date'] = date('Y-m-d', strtotime("+" . $this->config->item("trial_period") . " days", time())); 88 90 $user ['cellphone'] = $username; 89 91 if (! is_null ( $collaborator ) || $collaborator != '') { -
pro-violet-viettel/sourcecode/application/modules/frontend/views/lecture_editor.php
r647 r654 94 94 </div> 95 95 </div> 96 96 <?php echo $licenseAvailable;?> 97 97 <script type="text/javascript"> 98 98 var licenseAvailable = "<?php echo $licenseAvailable;?>"; 99 99 var url= "<?php echo base_url();?>"; 100 100 var first_visit= "<?php echo $first_visit;?>"; 101 var p_id= "<?php echo $p_id;?>"; 102 var expire_date= "<?php echo $expire_date;?>"; 101 103 var update_user_info="<?php echo $update_user_info;?>"; 102 104 var us_id="<?php echo $us_id;?>"; 103 105 </script> 104 106 <?php 105 $this->load->view('servicemodals' );107 $this->load->view('servicemodals',array("expire_date"=>$expire_date)); 106 108 $this->load->view('layout/frontend/footer', array('usjs'=> array('assets/js/frontend/lecture.js'))); 107 109 ?> -
pro-violet-viettel/sourcecode/application/modules/frontend/views/servicemodals.php
r638 r654 1 1 <!-- alert-services --> 2 <div class="modal fade" id="alert-trial-services" tabindex="-1" role="dialog"aria-hidden="true"> 3 <div class="modal-dialog"> 4 <div class="modal-content"> 5 <div class="modal-header"> 6 <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> 7 <h4 class="modal-title">ThÃŽng báo dá»ch vụ</h4> 8 </div> 9 <div class="modal-body"> 10 <div class="alert alert-block alert-success"> 11 <p> 12 <?php echo lang('_SBG_USER_TRIAL_SERVICE_MSG').$expire_date; ?> 13 </p> 14 </div> 15 </div> 16 17 <div class="modal-footer"> 18 <button type="button" class="btn btn-info" data-dismiss="modal">Dùng thá»</button> 19 <button type="button" class="btn btn-success" id="services-reg" data-dismiss="modal">ÄÄng kÜ gói VIP</button> 20 </div> 21 </div> 22 </div> 23 </div> 24 <!-- END: alert-services --> 25 <!-- alert-services --> 2 26 <div class="modal fade" id="alert-services" tabindex="-1" role="dialog"aria-hidden="true"> 3 27 <div class="modal-dialog"> -
pro-violet-viettel/sourcecode/assets/js/frontend/lecture.js
r650 r654 1 1 if (licenseAvailable == "!OK") 2 2 { 3 $('#alert-services').modal('show'); 3 4 if (first_visit == '1') { 4 $('#alert-services').modal('show'); 5 $('#alert-services').modal('show'); 6 } 7 } 8 if (first_visit == '1') { 9 if (update_user_info == "1") 10 { 11 $('#update_user_info').modal({backdrop: 'static'}); 12 } else { 13 if (p_id == 5) 14 { 15 $('#alert-trial-services').modal('show'); 16 } 5 17 } 6 18 } 7 19 8 if (update_user_info=="1") 9 { 10 $('#update_user_info').modal({backdrop: 'static'}); 11 } 20 12 21 $("#update_user_info.btn").click(function () { 13 22 $(".error").html(""); … … 21 30 if (result.success == "1") 22 31 { 23 24 32 $('#update_user_info').modal('hide'); 33 25 34 } 26 35 else … … 28 37 for (var key in result.errors) 29 38 { 30 $("#" +result.errors[key]['field']+".error").html(result.errors[key]['content']);31 39 $("#" + result.errors[key]['field'] + ".error").html(result.errors[key]['content']); 40 32 41 } 33 42 } … … 42 51 43 52 $('#services-reg').click(function () { 44 45 window.location=url+"frontend/user/profile#services-register";53 $('#alert-services').modal('hide'); 54 window.location = url + "frontend/user/profile#services-register"; 46 55 }); 47 56 48 57 $('#save-package').click(function () { 49 58 DoSaveLecture(); 50 59 }); 51 60 … … 99 108 ; 100 109 101 function DoSaveLecture 102 110 function DoSaveLecture() { 111 g_Flash.SetVariable("command", "Press Save"); 103 112 } 104 113 105 function DoOpenLecture 106 107 114 function DoOpenLecture(filename) { 115 g_Flash.SetVariable("openedFileName", filename); 116 g_Flash.SetVariable("command", "Open File"); 108 117 } 109 118 … … 149 158 150 159 $(document).ready(function () { 151 InitViolet(); 160 InitViolet(); 152 161 //$('#open-lecture').click(function(e){DoOpenLecture('http://sbgapi.violet.vn/space/file/id/7');}); 153 162 154 163 })
Note: See TracChangeset
for help on using the changeset viewer.