<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>管理页面</title>
<link href="{webroot}theme/admin/css/layout.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/admin/css/iframe.css" rel="stylesheet" type="text/css" />
<link href="{webroot}theme/admin/css/iconfont.css" rel="stylesheet" type="text/css" />
<link href="{webroot}lib/css/jquery.colorpicker.css" rel="stylesheet" type="text/css" />
<script src="{webroot}lib/js/jquery.js"></script>
<script src="{webroot}lib/js/jquery-migrate-1.1.0.min.js"></script>
<script src="{webroot}lib/js/jquery-ui.min.js"></script>
<script src="{webroot}theme/admin/js/jquery.layout-latest.min.js"></script>
<script src="{webroot}lib/js/jquery.uploader.js"></script>
<script src="{webroot}lib/tips/jquery.tips.js"></script>
<script src="{webroot}lib/validator/jquery.validator.js"></script>
<script src="{webroot}lib/validator/zh_CN.js"></script>
<script src="{webroot}lib/js/jquery.livequery.js"></script>
<script src="{webroot}lib/js/jquery.colorpicker.js"></script>
<script src="{webroot}theme/admin/js/admin.js"></script>
<script src="{webroot}lib/dialog/artdialog.js"></script>
<!--[if lt IE 9]>
<script src="{webroot}lib/js/html5.js"></script>
<![endif]-->
<script>
window.UEDITOR_HOME_URL="{webroot}";
var editor_cid="{id}";
var editor_classid=1;
var editor_upload_root="{get_adminfolder}";
var editor_adminid="{adminid}";
var editor_loginbase="{admin_loginbase}";
var editor_loginkey="{admin_loginkey}";
</script>
<script src="{webroot}lib/ueditor/editor_config.js"></script>
<script src="{webroot}lib/ueditor/editor.js"></script>
<script>
var myLayout;
$(function(){
myLayout=$("body").layout({north__spacing_open:0,south__spacing_open:0,east__spacing_open:0,east__minSize:250,east__initClosed:{sdcms[sys_optional]},resizable:false});
$(".ui-layout-toggler-east").click(function(){$(".right_subject span").fadeToggle(300);});
$(".right_subject span a").click(function(){myLayout.toggle('east');$(this).parent().fadeToggle(100)});
UE.getEditor('t2',editorOption);
$("#golike .del").live("click",function(){$(this).parent().remove();});
$("#s0").click(function(){
if($(this).attr("checked")){
$("#c0").attr("value","font-weight:bold;");
}else{$("#c0").attr("value","");}
})
$("#s1").click(function(){
if($(this).attr("checked")){
$("#c1").attr("value","font-style:italic;");
}else{$("#c1").attr("value","");}
})
//beigin
var $addInput=$("#addInput");
var $tableid=$("#voteitem");
var $addInput=$("#addInput");
$addInput.click(function(){
var sonnum=$("#voteitem li").size();
var textValueTrHtml='<li><input type="text" name="t29" id="t29_'+sonnum+'" size="15" maxlength="50" class="ip" value="本地下载'+(sonnum+1)+'" onfocus="if(this.value=="本地下载'+(sonnum+1)+'")this.value=""" onblur="if(this.value=="")this.value="本地下载'+(sonnum+1)+'"" data-rule="项目名称:required;" /><input type="text" name="t30" id="t30_'+sonnum+'" size="40" maxlength="255" class="ip" data-rule="下载地址:required;" /> <a href="javascript:;" class="leftarr iconfont"></a><a href="javascript:;" class="rightarr iconfont"></a><a href="javascript:;" class="delarr iconfont"></a><span for="t30_'+sonnum+'" class="msg-box"></span></li>';
sonnum=$("#voteitem li").size();
if(sonnum==10)
{
$.fn.tips({content:'最多只能添加10个'});
return false;
}
else
{
$tableid.append(textValueTrHtml);
}
})
$(".leftarr").live("click", function() {
var $ValueTr = $(this).parent();
var $PrevTr = $ValueTr.prev("li");
var PrevTrIndex = $("#voteitem li").index($PrevTr);
$PrevTr.insertAfter($ValueTr);
});
$(".rightarr").live("click", function() {
var $ValueTr = $(this).parent();
var $NextTr = $ValueTr.next("li");
if ($NextTr.length > 0) {
$NextTr.insertBefore($ValueTr);
}
});
$(".delarr").live("click", function() {
if (confirm("\u60a8\u786e\u5b9a\u8981\u5220\u9664\u5417\uff1f") == true) {
var sonnum=$("#voteitem li").size()
$(this).parent().remove();
}
});
var previewHTML='';
var dnum=1;
$('#selectFile').uploader({
action:'sd_upload.asp?act=json_down&cid={cid}classid=1&admin_id={adminid}&loginbase={admin_loginbase}&loginkey={admin_loginkey}',
name: "file",
formData:{},
multiple:true,
auto:true,
fileSizeLimit: '{sdcms[upmaxsize]}KB',
fileTypeDesc: '选择文件',
fileTypeExts: 'rar,zip,7z,pdf,doc,docx,xls,xlsx,exe,apk',
onProgress: function(e){
$.fn.tips({type:'loading',content:'文件上传中,请稍后'});
},
/*onSelected:function(filelist){
filelist.length=5;
},*/
onError:function(e){
$.fn.tips({content:e.name});
},
onSuccess:function(e){
data=jQuery.parseJSON(e.data);
if(data.status=="y")
{
var textValueTrHtml='<li><input type="text" name="t29" id="t29_'+dnum+'" size="15" maxlength="50" class="ip" value="本地下载'+(dnum)+'" onfocus="if(this.value=="本地下载'+(dnum)+'")this.value=""" onblur="if(this.value=="")this.value="本地下载'+(dnum)+'"" data-rule="项目名称:required;" /><input type="text" name="t30" id="t30_'+dnum+'" size="40" maxlength="255" value="'+data.info+'" class="ip" data-rule="下载地址:required;" /> <a href="javascript:;" class="leftarr iconfont"></a><a href="javascript:;" class="rightarr iconfont"></a><a href="javascript:;" class="delarr iconfont"></a><span for="t30_'+dnum+'" class="msg-box"></span></li>';
previewHTML+=textValueTrHtml;
dnum++;
}else{$.fn.tips({content:data.info});}
},
onAllComplete:function(){
if(previewHTML){
$('#voteitem').prepend(previewHTML);
$.fn.tips({type:'ok',content:'上传完成'});
previewHTML='';
dnum=1;
}
}
});
//over
})
</script>
</head>
<body>
<div class="ui-layout-north">
<div class="right_subject"><span><a href="javascript:;">关闭选填项目</a></span>当前位置:内容 > <a href="sd_content.asp?classid={classid}">{catename}</a> > <a href="?classid={classid}&act=publish&id={id}&sta={sta}&order={order}&page={page}">修改内容</a></div>
</div>
<form class="formname" method="post">
<div class="ui-layout-center">
<div class="table_form">
<div class="form_group">
<div class="form_txt">标题:</div>
<div class="form_input">
<input type="text" name="t0" id="t0" size="50" maxlength="255" value="{data(0,0)}" class="ip" data-rule="标题:required;" />
{dim style:style=data(11,0)}
<input name="s0" type="checkbox" id="s0" {if instr(style,"font-weight:bold;")>0}checked{/if} /><label for="s0">粗体</label>
<input name="s1" type="checkbox" id="s1" {if instr(style,"font-style:italic;")>0}checked{/if} /><label for="s1">斜体</label>
<input type="hidden" name="c0" id="c0" {if instr(style,"font-weight:bold;")>0}value="font-weight:bold;"{/if} />
<input type="hidden" name="c1" id="c1" {if instr(style,"font-style:italic;")>0}value="font-style:italic;"{/if} />
<input type="hidden" name="s2" id="s2" {if instr(style,"color:")>0}value="{left(right(style,8),7)}"{/if} />
<img src="{webroot}lib/images/colorpicker.gif" title="标题颜色" align="absmiddle" id="color" {if instr(style,"color:")>0} style="background:{left(right(style,8),7)}"{/if} /><span for="t0" class="msg-box"></span></div>
</div>
<div class="form_group">
<div class="form_txt">缩略图:</div>
<div class="form_input"><input type="text" name="t6" id="t6" size="50" maxlength="255" value="{data(3,0