فهرست منبع

软件锁完成

caipin 6 سال پیش
والد
کامیت
3680613fe3

+ 23 - 1
global/js/index.js

@@ -1742,8 +1742,30 @@ $(function() {
 				else
 				$("#longleStatus").html(data.longle.statusT+"/"+data.longle.product+""+kk+licencesHtml);
 				
-				$("#LongleLogHtml").html(data.longleLogHtml);
+				var fileHtml='';
+				if(data.longle.AuthorizeStr!=""){
+					fileHtml+='<a href="#signcode" data-toggle="modal">注册码</a> &nbsp;';
+					fileHtml+='<div class="modal hide fade" id="signcode"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><h3>注册码</h3></div><div class="modal-body saeaList">';
+					fileHtml+='<p style="margin-bottom:10px"><b>'+data.longle.key_num+'</b>注册码,仅用于首次使用进行注册。</p><textarea class="form-control" style="width:100%" rows="12" readonly="" id="copytext" onfocus="this.select()" onmouseover="this.focus()">';
+					fileHtml+=data.longle.AuthorizeStr+'</textarea>';
+					fileHtml+='<button class="button" onclick="copyText()">快速复制</button><p style="margin-top: 10px">如果「快速复制」按钮无法使用,请全选后使用快捷键「<b>Ctrl C</b>」复制,或者鼠标右键使用「<b>复制</b>」选项。</p></div><div class="modal-footer"><a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a></div></div></div></div>';
+					
+				}
+				if(data.longle.UpdateStr!=""){
+					fileHtml+='&nbsp;<a href="#updatecode" data-toggle="modal">升级文件</a> ';
+					fileHtml+='<div class="modal hide fade" id="updatecode"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><h3>升级码</h3></div><div class="modal-body saeaList">';
+					fileHtml+='<p style="margin-bottom:10px"><b>'+data.longle.key_num+'</b>升级文件,用于产品升级延期等。</p>';
+					fileHtml+='<p style="margin-bottom:10px" class="colRed">'+data.longle.key_num+' - '+data.longle.SerialNumber+'.spu</p>';
+					fileHtml+='<a href="'+data.longle.UpdateFile+'">下载文件</a>';
+					fileHtml+='</div><div class="modal-footer"><a href="#" class="button btn-gray" data-dismiss="modal" aria-hidden="true">关闭</a></div></div></div></div>';
+				}
+				$("#longleStatus").html(data.longle.statusT+"/"+data.longle.product+""+kk+licencesHtml);
 				
+				
+				$("#fileHtml").html(fileHtml);
+				
+				
+				$("#LongleLogHtml").html(data.longleLogHtml);
 				if(data.longle.status>=3){
 					$("#longleStatus_5").attr('disabled',false);
 					$("#longleStatus_6").attr('disabled',false);

+ 1 - 1
global/js/invoice.validator.js

@@ -86,7 +86,7 @@ $(function () {
 	    	phone:'required(invoiceCompany);',//mobile|tel;
 	    	bank:'required(invoiceCompany);',
 	    	bankAccount:'required(invoiceCompany);'
-	    	,invoicePrice: 'match(lte, 10000)'
+	    	,invoicePrice: 'match(lte, 100001)'
 	    	,invoiceQuantity: ' required;'
 	    	,invoiceUnitPrice: 'required; '
 	    	

+ 4 - 4
protected/config/js.edition.conf.php

@@ -1,12 +1,12 @@
 <?php
 
-define ( "index", WEB_SITE_GLOBAL.'js/index.js?1.06' );
-define ( "receiptExtend", WEB_SITE_GLOBAL.'js/receiptExtend.js?1.02' );
+define ( "index", WEB_SITE_GLOBAL.'js/index.js?1.07' );
+define ( "receiptExtend", WEB_SITE_GLOBAL.'js/receiptExtend.js?1.03' );
 
-define ( "receipt", WEB_SITE_GLOBAL.'js/receipt.js?1.04' );
+define ( "receipt", WEB_SITE_GLOBAL.'js/receipt.js?1.05' );
 define ( "invoice", WEB_SITE_GLOBAL.'js/invoice.js?1.02' );
 define ( "payments", WEB_SITE_GLOBAL.'js/payments.js?1.02' );
-define ( "invoiceValidator", WEB_SITE_GLOBAL.'js/invoice.validator.js?1' );
+define ( "invoiceValidator", WEB_SITE_GLOBAL.'js/invoice.validator.js?1.01' );
 
 define ( "autoTag", WEB_SITE_GLOBAL.'js/autoTag.js?1' );
 define ( "email", WEB_SITE_GLOBAL.'js/email.js?1' );

+ 3 - 0
protected/config/routes.conf.php

@@ -5,6 +5,9 @@ $route['*']['/emailtext'] = array('ErrorController', 'emailtext');
 $route['*']['/category/list.json'] = array('SoftController', 'categoryApi');
 $route['*']['/product/list.json'] = array('SoftController', 'productApi');
 $route['post']['/longle/list/add'] = array('SoftController', 'addLockApi');
+$route['*']['/longle/list/update'] = array('SoftController', 'updateLockApi');
+$route['*']['/longle/list/alteration'] = array('SoftController', 'alterationLongle');
+
 $route['get']['/longle/test'] = array('SoftController', 'longleTest');
 
 

+ 0 - 5
protected/controller/BuildingController.php

@@ -166,15 +166,10 @@ class BuildingController extends DooController {
             $data['clientInfo'] = $clientInfo;
 
             Doo::loadModel('buildActivation');
-
             $buildActivation = new BuildActivation();
-
             Doo::loadModel('L_category');
-
             $category = new L_category();
-
             Doo::loadModel('staff');
-
             $staff = new staff();
 
             $buildActivationList = $buildActivation->getListByssoID($_GET['id']);

+ 4 - 4
protected/controller/InvoiceController.php

@@ -503,7 +503,7 @@ class InvoiceController extends DooController {
 			}elseif($_SESSION [$sessionKey]=='repeat'){
                 die ( '请勿重复申请发票' );
             } else {
-			    echo $_SESSION [$sessionKey].'<br/>'.$token;
+			   
                 if ($_SESSION [$sessionKey] != $token){
                     die ( '请勿重复申请发票' );
                 }else{
@@ -514,9 +514,9 @@ class InvoiceController extends DooController {
 
 		if ($invoiceType == 1) {
 			$temporary = $invoiceQuantity * $invoiceUnitPrice;
-			if ($temporary > 10000) {
+			if ($temporary > 100001) {
 				header ( 'Content-Type:text/html;charset=utf-8' );
-				die ( '专用发票总金额暂时不能超过10000.00(一万)元。' );
+				die ( '专用发票总金额暂时不能超过100000.00(一万)元。' );
 				// die ( 'illegal request-Please priceError' );
 			}
 		}
@@ -819,7 +819,7 @@ class InvoiceController extends DooController {
 		
 		if ($invoiceType == 1) {
 			$temporary = $invoiceQuantity * $invoiceUnitPrice;
-			if ($temporary > 10000)
+			if ($temporary > 100001)
 				die ( 'illegal request-Please priceError' );
 		}
 		

+ 100 - 22
protected/controller/MainController.php

@@ -1476,17 +1476,25 @@ class MainController extends DooController {
 		$clientname = trim ( $clientname );
 		
 		$token = $this->get_args ( 'token' ) ? $this->get_args ( 'token' ) : "";
+		$tokenTime = $this->get_args ( 'tokenTime' ) ? $this->get_args ( 'tokenTime' ) : "";
 		
 		if (empty ( $token )) {
 			die ( 'illegal request-token' );
 		} else {
 			session_start ();
-			if ($_SESSION ['token_' . $this->staff [0] ['sidKey']] != $token) {
-				header ( 'Content-Type:text/html;charset=utf-8' );
-				die ( '请勿重复填写客户资料' );
-			} else {
-				$_SESSION ['token_' . $this->staff [0] ['sidKey']] = '';
-			}
+			$sessionKey='token_' . $this->staff [0] ['sidKey'].'_'.$tokenTime;
+			header ( 'Content-Type:text/html;charset=utf-8' );
+			if (!isset($_SESSION [$sessionKey])||empty($_SESSION [$sessionKey])) {
+				die ( '请重新刷新发票申请页面' );
+			}elseif($_SESSION [$sessionKey]=='repeat'){
+                die ( '请勿重复申请发票' );
+            }else{
+            	if ($_SESSION [$sessionKey] != $token){
+            		die ( '请勿重复填写客户资料' );
+            	} else {
+            		$_SESSION [$sessionKey] = 'repeat';
+            	}
+            } 
 		}
 		
 		// $companyname = trim ( $companyname );
@@ -2768,7 +2776,9 @@ class MainController extends DooController {
 		}
 		
 		$token = $this->set_token ();
-		$_SESSION ['token_' . $this->staff [0] ['sidKey']] = $token;
+		$tokenTime=time().rand(5, 15);
+		$_SESSION ['token_' . $this->staff [0] ['sidKey'].'_'.$tokenTime] = $token;
+		$data['tokenTime']=$tokenTime;
 		$data ['token'] = $token;
 		
 		$data ['remindCount'] = $rc;
@@ -3289,6 +3299,7 @@ class MainController extends DooController {
         $data['lidKey']=$lidKey;
         if (isset($longleDetail[0])){
             $data['longleDetail']=$longleDetail[0];
+            
         }else{
             $data['longleDetail']=array();
         }
@@ -3341,22 +3352,94 @@ class MainController extends DooController {
 		Doo::loadModel ( 'longle' );
 		$longle = new longle ();
 		
+		Doo::loadModel ( 'L_category' );
+		$L_category = new L_category ();
+		Doo::loadClass ( 'XDeode' );
+		$XDeode = new XDeode ( 5 );
+		
+		$cidKey = $this->get_args ( 'cidKey' ) ? $this->get_args ( 'cidKey' ) : '';
+		
+		
 		$staffCondition = "";
-		if ($this->staff [0] ['cid'] != 12)
+		if ($this->staff [0] ['cid'] != 12){
 			$staffCondition = " and cid=" . $this->staff [0] ['cid'];
+			$cid=$this->staff [0] ['cid'];
+		}else{
+			$cid=$this->staff [0] ['cid'];
+			if (!empty($cidKey)){
+				$cid = $XDeode->decode ( $cidKey );
+				if (! is_numeric ( $cid )){
+					$cid=$this->staff [0] ['cid'];
+				}
+			}
+			$staffCondition = " and cid=" . $cid;
+		}
 		
 		$staffList = $staff->find ( array (
-				'where' => "isadmin= 0 " . $staffCondition,
+				'where' => "isadmin= 0 and nature !=4  " . $staffCondition,
 				'asArray' => TRUE 
 		) );
-		Doo::db ()->beginTransaction ();
+		
+		
+		
+		
+		//
+		$sql = "select COUNT(*) as count,responsible
+				from CLD_longle
+				where status!= 1 and make_day >='2019-12-01'
+				GROUP BY responsible";
+		$query = Doo::db ()->query ( $sql );
+		$resultSum = $query->fetchAll ();
+		
+		$sql = "select COUNT(*) as count,responsible
+				from CLD_longle
+				where status!= 2 and status!= 1 and make_day >='2019-12-01'
+				GROUP BY responsible";
+		$query = Doo::db ()->query ( $sql );
+		$resultA = $query->fetchAll ();
+		
+		foreach ( $staffList as $key => $value ) {
+			$sum=$a=0;
+			foreach ($resultSum as $k=>$v){
+				if($value ['username']==$v['responsible']){
+					$sum=$v['count'];
+					break;
+				}
+			}
+			
+			foreach ($resultA as $k=>$v){
+				if($value ['username']==$v['responsible']){
+					$a=$v['count'];
+					break;
+				}
+			}
+			
+			$b = $sum - $a;
+			$staffList [$key] ['sum'] = $sum;
+			$staffList [$key] ['a'] = $a;
+			$staffList [$key] ['b'] = $b;
+		}
+		
+		
+		
+		
+		
+		
+		
+		
+		
+		
+		
+		
+		
+		/* Doo::db ()->beginTransaction ();
 		foreach ( $staffList as $key => $value ) { // not in(1,2)
 			$sum = $longle->count ( array (
-					'where' => "status!= 1 and responsible ='" . $value ['username'] . "'",
+					'where' => "status!= 1 and responsible ='" . $value ['username'] . "' and make_day >='2019-12-01'",
 					'asArray' => TRUE 
 			) );
 			$a = $longle->count ( array (
-					'where' => "status!= 2 and status!= 1 and responsible ='" . $value ['username'] . "'",
+					'where' => "status!= 2 and status!= 1 and responsible ='" . $value ['username'] . "' and make_day >='2019-12-01'",
 					'asArray' => TRUE 
 			) );
 			
@@ -3365,9 +3448,13 @@ class MainController extends DooController {
 			$staffList [$key] ['a'] = $a;
 			$staffList [$key] ['b'] = $b;
 		}
-		Doo::db ()->commit ();
+		Doo::db ()->commit (); */
+		
+		$data ['cid'] = $cid;
 		
+		$data ['category'] = $L_category->getCategory ();
 		$data ['staff'] = $this->staff;
+		
 		$data ['staffList'] = $staffList;
 		$data ['memu'] = "keyStatistics";
 		$this->render ( "lock_count", $data );
@@ -3791,7 +3878,6 @@ class MainController extends DooController {
 		}
 		
 		$ky = $longle->getLongleBykeynum ( $name );
-		
 		$t = $longle_log->getLongleByLid ( $ky [0] ['lid'] );
 		
 		if (isset ( $t [0] ))
@@ -3800,11 +3886,8 @@ class MainController extends DooController {
 			$tk = array ();
 		
 		$longleLog = $tk;
-		
 		$longleLog ['klid'] = $t [0] ['lid'];
-		
 		$longleLog ['longle'] = $ky [0];
-		
 		$longleLog ['longleLogHtml'] = $this->_getLongleLogHtml ( $t );
 		
 		echo json_encode ( $longleLog );
@@ -5655,21 +5738,18 @@ class MainController extends DooController {
 
                 // 生成
             }elseif ($value ['status'] == 1) {
-				
 				$html .= '<ul class="flowList">
 							<li class="item iconGenerate">生成<' . $value ['category'] . '<a href="javascript:void(0);" onclick="getStaffInfo(\'' . $value ['operator'] . '\')" >' . $value ['operator'] . '</a></li>
 
 						</ul>';
 				// 接收
 			} elseif ($value ['status'] == 2) {
-				
 				$html .= '<ul class="flowList">
 							<li class="item iconReceive">接收<' . $value ['category'] . '<a href="javascript:void(0);" onclick="getStaffInfo(\'' . $value ['operator'] . '\')" >' . $value ['operator'] . '</a></li>
 
 						</ul>';
 				// 借出
 			} elseif ($value ['status'] == 3) {
-				
 				$html .= '<ul class="flowList">
 							<li class="item iconBorrow">借出<' . $value ['category'] . '<a  href="javascript:void(0);" onclick="getStaffInfo(\'' . $value ['operator'] . '\')" >' . $value ['operator'] . '</a></li>
 
@@ -5678,7 +5758,6 @@ class MainController extends DooController {
 						</ul>';
 				// 销售
 			} elseif ($value ['status'] == 4) {
-				
 				$html .= '<ul class="flowList">
 							<li class="item iconSell">销售<' . $value ['category'] . '<a  href="javascript:void(0);" onclick="getStaffInfo(\'' . $value ['operator'] . '\')" >' . $value ['operator'] . '</a></li>
 
@@ -5687,7 +5766,6 @@ class MainController extends DooController {
 						</ul>';
 				// 升级
 			} elseif ($value ['status'] == 5) {
-				
 				$html .= '<ul class="flowList">
 							<li class="item iconUpdate">升级<' . $value ['category'] . '<a  href="javascript:void(0);" onclick="getStaffInfo(\'' . $value ['operator'] . '\')" >' . $value ['operator'] . '</a></li>
 

+ 1 - 1
protected/controller/SettingController.php

@@ -240,7 +240,7 @@ class SettingController extends DooController {
 		$gender = $this->get_args ( 'gender' ) ? $this->get_args ( 'gender' ) : '';
 		
 		$qq = is_numeric ( $this->get_args ( 'qq' ) ) ? $this->get_args ( 'qq' ) : 0;
-		$phone = is_numeric ( $this->get_args ( 'phone' ) ) ? $this->get_args ( 'phone' ) : 0;
+		$phone = $this->get_args ( 'phone' )  ? $this->get_args ( 'phone' ) : 0;
 		$wecat = $this->get_args ( 'wecat' ) ? $this->get_args ( 'wecat' ) : '';
 		$email = $this->get_args ( 'email' ) ? $this->get_args ( 'email' ) : '';
 		

تفاوت فایلی نمایش داده نمی شود زیرا این فایل بسیار بزرگ است
+ 512 - 23
protected/controller/SoftController.php


+ 11 - 1
protected/model/longle.php

@@ -23,11 +23,17 @@ class longle extends DooModel {
 	public $licences;
 	public $SerialNumber;
 	
+	public $AuthorizeStr;
+	public $AuthorizeFile;
+	public $UpdateStr;
+	public $UpdateFile;
+	
+	
 	
 	public $_table = 'CLD_longle';
 	public $_primarykey = 'lid';
 	public $_fields = array ('lid', 'year', 'cid','category','product_id', 'status','statuslog','statusT', 'key_num','SerialNumber','product','alloted_time', 'make_day','version', 'responsible','client','clientid'
-			,'licences'
+			,'licences' ,'AuthorizeStr','AuthorizeFile','UpdateStr','UpdateFile'
 	);
 	
 	public function getLongleByStatus($year=0,$cid=0,$staff=0,$status=0,$search="",$productW=""){
@@ -89,6 +95,10 @@ class longle extends DooModel {
 		return $this->find ( array ('where' => " client like '".$clientname."'", 'asArray' => TRUE ) );
 	}
 	
+	public function getLongleBySerialNumber($SerialNumber){
+		return $this->getOne ( array ('where' => " SerialNumber like '".$SerialNumber."'", 'asArray' => TRUE ) );
+	}
+	
 	public function getLongleByClientid($client){
 		return $this->find ( array ('where' => " clientid = '".$client."'", 'asArray' => TRUE ) );
 	}

+ 1 - 1
protected/model/product.php

@@ -17,7 +17,7 @@ class product extends DooModel {
 	}
 	
 	public function getProudct() {
-		return $this->find ( array ('asc' => 'pid', 'asArray' => TRUE ) );
+		return $this->find ( array ('desc' => 'pid', 'asArray' => TRUE ) );
 	}
 
 	function getProductById($pid = 0 ) {

+ 1 - 1
protected/view/admin/invoice.html

@@ -92,7 +92,7 @@
 										<!-- if {{pendingInvoice' value.status}}==3 and {{pendingInvoice' value.untreadStatus}}==0  -->
 										<div class="btn-group">
 										<a class="button btn-red  btn-inline" diss-data="{{pendingInvoice' value.iidKey}}" node-invoice="droppedInvoice" data-toggle="modal" href="#invalid">终止开票</a>
-										<a class="button btn-inline" href="/invoiceEdit/{{pendingInvoice' value.iidKeyUrl}}.html">重新提交</a>
+										<a class="button btn-inline" href="/invoiceEdit/{{pendingInvoice' value.iidKeyUrl}}.html">返回编辑</a>
 										</div>
 										<!-- elseif {{pendingInvoice' value.status}}==4 and {{pendingInvoice' value.untreadStatus}}==0 -->
 										<a class="button btn-gray btn-block" href="/invoiceDelDo/{{pendingInvoice' value.iidKeyUrl}}.do">从待处理移除</a>

+ 3 - 3
protected/view/admin/invoiceAdd.html

@@ -30,7 +30,7 @@ $('input[amount]').keyup(function() {
 		var amount=invoiceQuantity*invoiceUnitPrice;
 		if (!isNaN(amount) ){
 			$("#invoicePrice").val(amount);
-			if(amount>10000){
+			if(amount>100001){
 				var msgHtml='<span class="msg-box n-right" for="invoicePrice"><span role="alert" class="msg-wrap n-error"><span class="n-icon"></span><span class="n-msg">此处必须小于10000</span></span></span>';
 				$("#msgMaxPrice").html(msgHtml);
 			}else{
@@ -57,7 +57,7 @@ $('#invoiceSpecial').click(function() {
 	var amount=invoiceQuantity*invoiceUnitPrice;
 	if (!isNaN(amount) ){
 		$("#invoicePrice").val(amount);
-		if(amount>10000){
+		if(amount>100001){
 			var msgHtml='<span class="msg-box n-right" for="invoicePrice"><span role="alert" class="msg-wrap n-error"><span class="n-icon"></span><span class="n-msg">此处必须小于10000</span></span></span>';
 			$("#msgMaxPrice").html(msgHtml);
 		}else{
@@ -298,7 +298,7 @@ $("input[autoIFBTIN]").autocomplete({
 									<th class="taC"><span class="colRed">*</span>开票金额</th>
 									<td colspan="3">
 									
-										<p class="colGray">数量*单价=开票金额&nbsp;&nbsp;&nbsp;&nbsp;<span class="colRed">专用发票总金额暂时不能超过10000.00(一万)元。</span></p>
+										<p class="colGray">数量*单价=开票金额&nbsp;&nbsp;&nbsp;&nbsp;<span style="display:none" class="colRed">专用发票总金额暂时不能超过100000.00(十万)元。</span></p>
 										<b class="colOrange" id="tp" style="font-size:18px">¥0</b>
 										<span id="msgMaxPrice"></span>
 										<input  name="10000" id="10000" type="hidden" value="10000">

+ 1 - 1
protected/view/admin/receipt_menu.html

@@ -21,7 +21,7 @@
 	<li <!-- if  getGlobals('NEW2') !=0 --> class="news" <!-- endif --> ><a <!-- if {{receiptMemu}}=="implement" --> class="selected" <!-- endif --> href="/hisImplement">费用执行</a></li>			
 	<!-- endif -->
 				
-	<li><a <!-- if {{receiptMemu}}=="remittanceHky" --> class="selected" <!-- endif --> href="/remittanceHky">费用汇款</a></li>			
+	<li class="hide"><a <!-- if {{receiptMemu}}=="remittanceHky" --> class="selected" <!-- endif --> href="/remittanceHky">费用汇款</a></li>			
 
 	<!-- endif -->
 

+ 1 - 0
protected/view/contacts_client.html

@@ -284,6 +284,7 @@
 				<div  style="display:none;" id="addClient">
 					<form name="adcl" id="adcl" action="/addClient" method="post" >
 						<input type="hidden" name="token" value="{{token}}">
+						<input type="hidden" name="tokenTime" value="{{tokenTime}}">
 						<div class="contactInfo">
 				  			<div class="contactPanel">
 				  				<div class="bsAlert bsInfo"><b>添加新客户</b>前,可先搜索是否有其他同事已经添加了该客户。</div>

+ 19 - 0
protected/view/lock_count.html

@@ -7,6 +7,15 @@
 <script src="<?= WEB_SITE_GLOBAL ?>/js/jquery.ui.position.js"></script>
 <script src="<?= WEB_SITE_GLOBAL ?>/js/jquery.ui.autocomplete.js"></script>
 
+<script>
+$(function() {
+$('select[fnCidData]').change(function() {
+	$("#statistics").submit();
+});
+
+})
+</script>
+
 <body>
 	<div class="mainLayout">
 		<div class="mainMenu">
@@ -23,7 +32,17 @@
 				<a class="now" href="#">使用统计</a>
 				<div class="searchItem"><input type="text" placeholder="输入锁号进行搜索"><input type="button" class="subBtn" value="搜索"><input value="新锁" class="subBtn add" type="button" onclick="javascrtpt:window.location.href='admin-addlock.html'"></div>
 			</div>
+			
 	  		<div class="lockDatabase fL autoHeight">
+	  		<!-- if {{staff.0.cid}}==12 -->
+	  		<form  id="statistics" action="/statistics" method="get" >
+	  		<select  name="cidKey" fnCidData >
+	  					<!-- loop category -->
+	  					<option <!-- if {{cid}}=={{category' value.cid}} --> selected <!-- endif --> value="{{category' value.cidKey}}">{{category' value.title}}</option>
+	  					<!-- endloop -->
+	  					</select>
+	  					</form>
+	  					<!-- endif -->
 	  			<table class="table table-bordered table-condensed table-hover" style="margin:5px">
 					<thead>
 					<tr>

+ 24 - 4
protected/view/lock_look.html

@@ -9,10 +9,6 @@
 
 <script src="<?= autoTag ?>"></script>
 
-<script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>/js/bootstrap.min.js"></script>
-<script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>/js/bootstrap-datetimepicker.js" charset="UTF-8"></script>
-<script type="text/javascript" src="<?= WEB_SITE_GLOBAL ?>/js/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
-
 <link href="<?= WEB_SITE_GLOBAL ?>/css/datepicker.min.css" rel="stylesheet" type="text/css">
 <script src="<?= WEB_SITE_GLOBAL ?>/js/datepicker.min.js"></script>
 <script src="<?= WEB_SITE_GLOBAL ?>/js/datepicker.zh.js"></script>
@@ -133,6 +129,16 @@
 							<!-- endif -->
 							</span>
 					</h2>
+					<h2 id="fileHtml">
+					
+					<!-- if !empty({{longleDetail.AuthorizeStr}}) -->
+					<a href="#signcode" data-toggle="modal">注册码</a>
+					<!-- endif -->
+					&nbsp;&nbsp;
+					<!-- if !empty({{longleDetail.UpdateStr}}) -->
+					<a href="#updatecode" data-toggle="modal">升级文件</a>
+					<!-- endif -->
+					</h2>
 	  				</div>
 	  			<div  class="lockRecord autoHeightR2" >
 	  				<!--添加记录按钮-->
@@ -292,6 +298,12 @@
 	  		</div>
 		</div>
 	</div>
+	
+	<!--弹出 注册码)-->
+	
+		<!--弹出 升级码)-->
+	
+	
 	<!-- if {{reLongle}}!=0 -->
 	<div class="globalNotice">
 		<div class="entry clearfix">
@@ -305,4 +317,12 @@
 	</div>
 	<!-- endif -->
 <script type="text/javascript">autoFlashHeight();</script>	
+<script type="text/javascript">
+    function copyText() {
+      var input = document.getElementById("copytext");
+      input.select(); // 选中文本
+      document.execCommand("copy"); // 执行浏览器复制命令
+      alert("复制成功");
+    }
+  </script>
 </body>

+ 2 - 2
protected/view/menu.html

@@ -35,8 +35,8 @@
 </li>
 <!-- endif -->
 
-<li data-placement="right" data-toggle="ctooltip"  data-original-title="建筑激活">
-<a href="/build/activation" class="icon- <!-- if {{memu}}=="buildActivation" --> selected <!-- endif -->">D</a>
+<li data-placement="right" data-toggle="ctooltip"  data-original-title="云版管理">
+<a href="/cloud/curing/edition" class="icon- <!-- if {{memu}}=="buildActivation" --> selected <!-- endif -->">D</a>
 </li>
 
 <!-- if isShowMenu('HR') -->