前端
This commit is contained in:
parent
7ef117ea85
commit
f678e26058
42
edit.php
42
edit.php
@ -14,6 +14,15 @@ if(!isn(r('modiroles'))){
|
||||
$configJson['roles'] = $arr;
|
||||
file_put_contents("config.json",json_encode($configJson));
|
||||
}
|
||||
|
||||
if(!isn(r('modiroles'))){
|
||||
$cproles = trim(_r("chanpin"));
|
||||
$cproles = str_replace("\r","",$cproles);
|
||||
$arr = explode("\n",$cproles);
|
||||
$configJson['cproles'] = $arr;
|
||||
file_put_contents("config.json",json_encode($configJson));
|
||||
}
|
||||
|
||||
require_once(ROOT.'./_config.php');
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
@ -42,6 +51,39 @@ require_once(ROOT.'./_config.php');
|
||||
<input type="submit" name="modiroles" id="button" value="提交">
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<h3>产品编辑权限</h3>
|
||||
<form name="form1" method="post" action="">
|
||||
<p>每行一个</p>
|
||||
<p>
|
||||
<textarea name="cproles" id="cproles" cols="45" rows="5" style="width:90%;height:300px;"><?=implode("\n",$CPROLES)?></textarea>
|
||||
</p>
|
||||
<p>
|
||||
<input type="submit" name="modiroles" id="button" value="提交">
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<h3>运营编辑权限</h3>
|
||||
<form name="form1" method="post" action="">
|
||||
<p>每行一个</p>
|
||||
<p>
|
||||
<textarea name="yyroles" id="yyroles" cols="45" rows="5" style="width:90%;height:300px;"><?=implode("\n",$yyROLES)?></textarea>
|
||||
</p>
|
||||
<p>
|
||||
<input type="submit" name="modiroles" id="button" value="提交">
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<h3>研发编辑权限</h3>
|
||||
<form name="form1" method="post" action="">
|
||||
<p>每行一个</p>
|
||||
<p>
|
||||
<textarea name="yfroles" id="yfroles" cols="45" rows="5" style="width:90%;height:300px;"><?=implode("\n",$yfROLES)?></textarea>
|
||||
</p>
|
||||
<p>
|
||||
<input type="submit" name="modiroles" id="button" value="提交">
|
||||
</p>
|
||||
</form>
|
||||
<p> </p>
|
||||
</body>
|
||||
</html>
|
@ -700,7 +700,7 @@ if ($act == 'newevent') {
|
||||
{{? item != ''}}
|
||||
<img src="/assets/images/xiazai.png"/>
|
||||
<div id='cpfuinfo'>
|
||||
<a href='{{= item.file}}'>{{= item.name}}</a>
|
||||
<a href='http://leguevent.local{{= item.file}}'>{{= item.name}}</a>
|
||||
</div>
|
||||
{{??}}
|
||||
<div class='fujian'>
|
||||
@ -727,7 +727,10 @@ if ($act == 'newevent') {
|
||||
temp = obj.files[i].name;
|
||||
}
|
||||
var arr = [];
|
||||
arr.push(temp)
|
||||
var data = {};
|
||||
data['name'] = temp
|
||||
data['file'] = "#"
|
||||
arr.push(data)
|
||||
tmpltxt = doT.template(document.getElementById("fujian-dot").innerHTML);//生成模板方法
|
||||
document.getElementById("fujianname").innerHTML = tmpltxt(arr);//数据渲染
|
||||
// console.log('arr');
|
||||
@ -742,7 +745,10 @@ if ($act == 'newevent') {
|
||||
temp = obj.files[i].name;
|
||||
}
|
||||
var arr = [];
|
||||
arr.push(temp)
|
||||
var data = {};
|
||||
data['name'] = temp
|
||||
data['file'] = "#"
|
||||
arr.push(data)
|
||||
tmpltxt = doT.template(document.getElementById("fujian-dot").innerHTML);//生成模板方法
|
||||
document.getElementById("yyfujian").innerHTML = tmpltxt(arr);//数据渲染
|
||||
})
|
||||
@ -756,7 +762,10 @@ if ($act == 'newevent') {
|
||||
temp = obj.files[i].name;
|
||||
}
|
||||
var arr = [];
|
||||
arr.push(temp)
|
||||
var data = {};
|
||||
data['name'] = temp
|
||||
data['file'] = "#"
|
||||
arr.push(data)
|
||||
tmpltxt = doT.template(document.getElementById("fujian-dot").innerHTML);//生成模板方法
|
||||
document.getElementById("yffujian").innerHTML = tmpltxt(arr);//数据渲染
|
||||
})
|
||||
@ -939,7 +948,7 @@ if ($act == 'newevent') {
|
||||
select: function (start, end, allDay) {
|
||||
if ("<?=$canEdit?>" != "1") return;
|
||||
dict = {};
|
||||
console.log('select', start, end, allDay);
|
||||
// console.log('select', start, end, allDay);
|
||||
|
||||
dict.start = $.fullCalendar.formatDate(start, 'yyyy-MM-dd');
|
||||
dict.end = $.fullCalendar.formatDate(end, 'yyyy-MM-dd');
|
||||
@ -976,7 +985,7 @@ if ($act == 'newevent') {
|
||||
,
|
||||
eventClick: function (calEvent, jsEvent, view) {
|
||||
// if("<?=$canEdit?>"!="1")return;
|
||||
console.log('calEvent', calEvent, jsEvent, view);
|
||||
// console.log('calEvent', calEvent, jsEvent, view);
|
||||
notid = calEvent.id;
|
||||
|
||||
$('#uploader').attr('action','./?app=uploader&id='+ calEvent.id +'&bumen=chanpin&act=add');
|
||||
@ -1147,24 +1156,23 @@ if ($act == 'newevent') {
|
||||
success: function (res) {
|
||||
$('#pop-title').html('【'+ res.game +'】'+ res.event + ':' + res.title );
|
||||
// $("#cptext").val(res.yanfa_remark)
|
||||
console.log(res.chanpin_remark)
|
||||
// console.log(res.chanpin_remark)
|
||||
document.getElementById("cptext").innerHTML = res.chanpin_remark;
|
||||
document.getElementById("yytext").innerHTML = res.yunying_remark;
|
||||
document.getElementById("yftext").innerHTML = res.yanfa_remark;
|
||||
|
||||
var fujian = JSON.parse(res.fujian);
|
||||
console.log(fujian);
|
||||
// console.log(fujian);
|
||||
var arrcp = [];
|
||||
var arryy = [];
|
||||
var arryf = [];
|
||||
for(let i in fujian ){
|
||||
if(fujian[i]['bumen'] == 'chanpin'){
|
||||
|
||||
arrcp.push(fujian[i])
|
||||
console.log(arrcp);
|
||||
tmpltxt = doT.template(document.getElementById("fujian-dot").innerHTML);//生成模板方法
|
||||
document.getElementById("fujianname").innerHTML = tmpltxt(arrcp);//数据渲染
|
||||
}else if(fujian[i]['bumen'] == 'yunying'){
|
||||
}else if(fujian[i]['bumen'] == 'yunyig'){
|
||||
arryy.push(fujian[i])
|
||||
tmpltxt = doT.template(document.getElementById("fujian-dot").innerHTML);//生成模板方法
|
||||
document.getElementById("yyfujian").innerHTML = tmpltxt(arryy);//数据渲染
|
||||
|
Loading…
Reference in New Issue
Block a user