WebMvc/Areas/Controls/Views/SelectIco/Index.cshtml
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
@{
ViewBag.Title = "Index";
Page.BodyStyle = "style='padding:6px 5px 5px 5px;'";
Page.CheckApp = false;
}
<style type="text/css">
.fileItem1 {text-align:center; float:left; display:inline-block; margin:3px 7px 3px 7px; cursor:pointer; width:93px; height:40px; overflow:hidden;}
.fileItem1 span {line-height:25px; padding:2px 2px 2px 2px; -moz-user-select:none; color:#555;}
.fileItem2 {text-align:center; }
.fileItem2 span {background:#339; padding:2px 2px 2px 2px; color:#fff;}
</style>
<table width="100%" cellpadding="0" cellspacing="0" border="0" align="center">
<tr>
<td>
<div id="selectList" style="border:1px solid #ccc; overflow:auto; height: 320px; width:100%; text-align:center;"></div>
</td>
</tr>
<tr>
<td align="center" valign="bottom" style="height:32px;">
<input type="button" id="btnOK" onclick="OK_Click();" value=" 确 定 " class="mybutton" />
<input type="button" id="btnCancel" onclick="new RoadUI.Window().close();" value=" 取 消 " class="mybutton" />
</td>
</tr>
</table>
<script type="text/javascript">
var path = '@Request.QueryString["source"]';
var id = '@Request.QueryString["id"]';
var curSelectName = '';
var curSelectPath = '';
var icoTree = null;
$(function ()
{
getFiles(path);
});
function OK_Click()
{
var win = new RoadUI.Window();
var ele = win.getOpenerElement(id);
if (ele != null && ele.size() > 0)
{
$(ele).val(curSelectPath);
}
win.close();
}
function getFiles(folderValue)
{
$.ajax({
type: "get", url: "File?path=" + folderValue, dataType: "xml", async: true, cache: false,
success: function (xml) { showFiles(xml); }
});
}
var showFiles = function (xmlDom)
{
$element = $("#selectList");
$element.children().remove();
if (xmlDom == null || xmlDom.documentElement.childNodes.length == 0)
{
return;
}
后面还有 20 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
