47 lines
1.7 KiB
Plaintext
47 lines
1.7 KiB
Plaintext
|
@{
|
|||
|
Layout = "_DialogLayout";
|
|||
|
}
|
|||
|
@model JXCMS.CMS.Movie.Entity.WebSiteEntity
|
|||
|
|
|||
|
<form id="modify_website" action="@Url.Action("AddWebSite")" method="post">
|
|||
|
<input type="hidden" id="id" value="@Model.Id"/>
|
|||
|
<div class="form-group">
|
|||
|
<label for="website_api" class="control-label">网站地址(海洋CMS API):</label>
|
|||
|
<input type="text" class="form-control" id="website_api" name="apiUrl" value="@Model.ApiUrl">
|
|||
|
</div>
|
|||
|
<div class="form-group">
|
|||
|
<label for="website_cron" class="control-label">采集时间(默认每小时0分0秒执行):</label>
|
|||
|
<input type="text" class="form-control" id="website_cron" name="cron" value="@Model.Cron">
|
|||
|
</div>
|
|||
|
<div class="form-group">
|
|||
|
<label for="website_display" class="control-label">网站显示名称:</label>
|
|||
|
<input type="text" class="form-control" id="website_display" name="webSiteName" value="@Model.WebSiteName">
|
|||
|
</div>
|
|||
|
</form>
|
|||
|
|
|||
|
@section dialogScript
|
|||
|
{
|
|||
|
|
|||
|
<script type="text/javascript">
|
|||
|
$('#commit').click(function() {
|
|||
|
var url = $("#website_api").val();
|
|||
|
var name = $("#website_display").val();
|
|||
|
var cron = $("#website_cron").val();
|
|||
|
if (url === "" || name === "" || cron === ""){
|
|||
|
lightyear.notify('输入内容不能为空', 'danger', 100);
|
|||
|
return;
|
|||
|
}
|
|||
|
if (!IsURL(url)) {
|
|||
|
lightyear.notify('URL格式不正确', 'danger', 100);
|
|||
|
return;
|
|||
|
}
|
|||
|
var msg = cronValidate(cron);
|
|||
|
if (msg !== true) {
|
|||
|
lightyear.notify(msg, 'danger', 100);
|
|||
|
return;
|
|||
|
}
|
|||
|
$('#modify_website').submit();
|
|||
|
})
|
|||
|
</script>
|
|||
|
}
|