You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
4.7 KiB
HTML

2 years ago
<extend name="Public/base"/>
<block name="body">
<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
<div class="cf main-place top_nav_list navtab_list">
<h3 class="page_title">{$meta_title}</h3>
<p class="description_text"></p>
</div>
<div class="tab-content tabcon1711 tabcon17112">
<form action="{:U()}" method="post" class="form-horizontal form_info_ml">
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td class="l noticeinfo">快捷方式名称</td>
<td class="r table_radio">
<input type="text" class="" name="title" value="" placeholder="请输入快捷方式名称">
<span class="notice-text">用于显示的文字</span>
</td>
</tr>
<tr>
<td class="l noticeinfo">快捷方式URL</td>
<td class="r table_radio">
<input type="text" class="" name="url" value="" placeholder="快捷方式URL">
<span class="notice-text">用于跳转的链接</span>
</td>
</tr>
<tr class="picbox">
<td class="l noticeinfo">快捷图标</td>
<td class="r table_radio">
<input type="file" id="upload_picture_{$config.name}">
<input type="hidden" name="config" id="cover_id_{$config.name}" value=""/>
<div class="upload-img-box">
<notempty name="config['value']">
<div class="upload-pre-item">
<span class="placeholder-graphic placeholder-graphic_kuaijie_icon"><img src="{$config['value']|get_cover='path'}"/></span>
</div>
</notempty>
</div>
<span class="notice-text">(尺寸64px*64px)快捷图标</span>
</td>
</tr>
</tbody>
</table>
<script type="text/javascript">
//上传图片
/* 初始化上传插件 */
$("#upload_picture_{$config.name}").uploadify({
"height" : 30,
"swf" : "__STATIC__/uploadify/uploadify.swf",
"fileObjName" : "download",
"buttonText" : "上传快捷图标",
"uploader" : "{:U('File/uploadPicture',array('session_id'=>session_id()))}",
"width" : 120,
'removeTimeout' : 1,
'fileTypeExts' : '*.jpg; *.jpeg; *.png; *.gif;',
"onUploadSuccess" : uploadPicture{$field.name},
'onFallback' : function() {
alert('未检测到兼容版本的Flash.');
}
});
function uploadPicture{$field.name}(file, data){
var data = $.parseJSON(data);
var src = '';
if(data.status){
$("#cover_id_{$config.name}").val(data.id);
src = data.url || '__ROOT__' + data.path;
$("#cover_id_{$config.name}").parent().find('.upload-img-box').html(
'<div class="upload-pre-item"><span class="placeholder-graphic placeholder-graphic_kuaijie_icon"><img src="' + src + '"/></span></div>'
);
} else {
updateAlert(data.info);
setTimeout(function(){
$('#top-alert').find('button').click();
$(that).removeClass('disabled').prop('disabled',false);
},1500);
}
}
</script>
</form>
<div class="form-item cf">
<button class="submit_btn ajax-post mlspacing" id="submit" type="submit" target-form="form-horizontal">
保存
</button>
<a class="submit_btn " alt="返回上一页" title="返回上一页" href="javascript:window.history.back();" >
返回
</a>
</div>
</div>
<div class="common_settings">
<span class="plus_icon"><span><img src="__IMG__/zwmimages/icon_jia.png"></span></span>
<form class="addShortcutIcon">
<input type="hidden" name="title" value="{$m_title}">
<input type="hidden" name="url" value="{$m_url}">
</form>
<a class="ajax-post add-butn <notempty name='commonset'>addSIsetted</notempty>" href="javascript:;" target-form="addShortcutIcon" url="{:U('Think/addShortcutIcon')}"><img src="__IMG__/zwmimages/icon_jia.png"><span><notempty name='commonset'>已添加<else />添加至常用设置</notempty></span></a>
</div>
</block>
<block name="script">
<script type="text/javascript" charset="utf-8">
//导航高亮
highlight_subnav('{:U('index')}');
</script>
</block>