uiupload 图片上传可视化标签

【基础用法】
名称:uiupload
功能:图片上传,使用时结合html一起才能完成可视化布局,只针对具有可视化功能的模板。
语法:
<a href="http://www.eyoucms.com" class="eyou-edit" e-id="文件模板里唯一的数字ID" e-page='文件模板名' e-type="upload">
{eyou:uiupload e-id='必须与上面的数字ID一致' e-page='必须与上面的文件模板名一致' id='field'}
{$field.value}
{eyou:else /}
<img src="/uploads/180606/1-1P60610091T37.jpg" arc='EyouCms' />
{/eyou:uiupload}
</a>
参数:
e-id='' 每个模板文件里唯一的数字ID,必须与uihtml标签外层的html元素标签e-id保持一致
e-page='' 页面分组,假设模板文件是index.htm,那么e-page的值是index
id='' 可以任意指定循环里的变量名替代field,假设id='field1',模板调用如:{$field.value} 变成 {$field1.value}
底层字段:
 
【更多示例】
-------------------------------示例1--------------------------------
描述:在模板文件index.htm中调用uiupload标签,实现指定图片区域可视化上传的效果。
<!DOCTYPE html>
<html>
<head>
<title>EyouCms企业建站系统</title>
</head>
<body>
<div>
<a href="http://www.eyoucms.com" class="eyou-edit" e-id="300" e-page='index' e-type="upload">
<!-- uiupload可视化标签调用 start -->
{eyou:uiupload e-id='300' e-page='index' id='field'}
{$field.value}
{eyou:else /}
<img src="/uploads/180606/1-1P60610091T37.jpg" arc='EyouCms' />
{/eyou:uiupload}
<!-- uiupload可视化标签调用 end -->
</a>
</div>
<!-- 可视化模板必须引入的ui标签 start -->
{eyou:ui open='off' /}
<!-- 可视化模板必须引入的ui标签 end -->
</body>
</html>
-------------------------------示例2--------------------------------
描述:在模板文件lists_article.htm中调用uiupload标签,实现指定图片区域可视化上传的效果。
<!DOCTYPE html>
<html>
<head>
<title>EyouCms企业建站系统</title>
</head>
<body>
<div>
<a href="http://www.eyoucms.com" class="eyou-edit" e-id="300" e-page='lists_article' e-type="upload">
<!-- uiupload可视化标签调用 start -->
{eyou:uiupload e-id='300' e-page='lists_article' id='field'}
{$field.value}
{eyou:else /}
<img src="/uploads/180606/1-1P60610091T37.jpg" arc='EyouCms' />
{/eyou:uiupload}
<!-- uiupload可视化标签调用 end -->
</a>
</div>
<!-- 可视化模板必须引入的ui标签 start -->
{eyou:ui open='off' /}
<!-- 可视化模板必须引入的ui标签 end -->
</body>
</html>
-------------------------------示例3--------------------------------
描述:在模板文件index.htm中,多处调用uiupload标签的写法。
<!DOCTYPE html>
<html>
<head>
<title>EyouCms企业建站系统</title>
</head>
<body>
<div>
<a href="http://www.eyoucms.com" class="eyou-edit" e-id="300" e-page='index' e-type="upload">
<!-- uiupload可视化标签调用 start -->
{eyou:uiupload e-id='300' e-page='index' id='field'}
{$field.value}
{eyou:else /}
<img src="/uploads/180606/1-1P60610091T37.jpg" arc='EyouCms' />
{/eyou:uiupload}
<!-- uiupload可视化标签调用 end -->
</a>
<a href="http://www.eyoucms.com" class="eyou-edit" e-id="301" e-page='index' e-type="upload">
<!-- uiupload可视化标签调用 start -->
{eyou:uiupload e-id='301' e-page='index' id='field'}
{$field.value}
{eyou:else /}
<img src="/uploads/180606/1-1P60610091T37.jpg" arc='EyouCms' />
{/eyou:uiupload}
<!-- uiupload可视化标签调用 end -->
</a>
</div>
<!-- 可视化模板必须引入的ui标签 start -->
{eyou:ui open='off' /}
<!-- 可视化模板必须引入的ui标签 end -->
</body>
</html>
-------------------------------示例4--------------------------------
描述:在模板文件index.htm中,多处调用uiupload标签的写法,只在html最外层元素指定一次e-page属性值。
<!DOCTYPE html>
<html>
<head>
<title>EyouCms企业建站系统</title>
</head>
<body>
<div e-page='index'> <!-- 最外层指定e-page属性值,里面html元素<a>可以不再指定e-page属性值 -->
<a href="http://www.eyoucms.com" class="eyou-edit" e-id="300" e-type="upload">
<!-- uiupload可视化标签调用 start -->
{eyou:uiupload e-id='300' e-page='index' id='field'}
{$field.value}
{eyou:else /}
<img src="/uploads/180606/1-1P60610091T37.jpg" arc='EyouCms' />
{/eyou:uiupload}
<!-- uiupload可视化标签调用 end -->
</a>
<a href="http://www.eyoucms.com" class="eyou-edit" e-id="301" e-type="upload">
<!-- uiupload可视化标签调用 start -->
{eyou:uiupload e-id='301' e-page='index' id='field'}
{$field.value}
{eyou:else /}
<img src="/uploads/180606/1-1P60610091T37.jpg" arc='EyouCms' />
{/eyou:uiupload}
<!-- uiupload可视化标签调用 end -->
</a>
</div>
<!-- 可视化模板必须引入的ui标签 start -->
{eyou:ui open='off' /}
<!-- 可视化模板必须引入的ui标签 end -->
</body>
</html>