123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135 |
- <?php /*a:2:{s:79:"/data/web/mall.valimart.net/app/admin/view/articleclass/article_class_edit.html";i:1657785096;s:61:"/data/web/mall.valimart.net/app/admin/view/public/header.html";i:1657785098;}*/ ?>
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <title><?php echo htmlentities((isset($html_title) && ($html_title !== '')?$html_title:config('ds_config.site_name'))); ?><?php echo htmlentities(lang('system_backend')); ?></title>
- <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
- <link rel="stylesheet" href="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/css/admin.css">
- <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.css">
- <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery-2.1.4.min.js"></script>
- <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.validate.min.js"></script>
- <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.cookie.js"></script>
- <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/common.js"></script>
- <script src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/admin.js"></script>
- <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.js"></script>
- <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery.ui.datepicker-zh-CN.js"></script>
- <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.js"></script>
- <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/layer/layer.js"></script>
- <script type="text/javascript">
- var BASESITEROOT = "<?php echo htmlentities(BASE_SITE_ROOT); ?>";
- var ADMINSITEROOT = "<?php echo htmlentities(ADMIN_SITE_ROOT); ?>";
- var BASESITEURL = "<?php echo htmlentities(BASE_SITE_URL); ?>";
- var HOMESITEURL = "<?php echo htmlentities(HOME_SITE_URL); ?>";
- var ADMINSITEURL = "<?php echo htmlentities(ADMIN_SITE_URL); ?>";
- </script>
- </head>
- <body>
- <div id="append_parent"></div>
- <div id="ajaxwaitid"></div>
- <div class="page">
- <div class="fixed-empty"></div>
- <form id="article_class_form" method="post" name="articleClassForm">
- <table class="ds-default-table">
- <tbody>
- <tr class="noborder">
- <td colspan="2" class="required">
- <label class="validation" for="ac_name"><?php echo htmlentities(lang('ac_name')); ?>:</label>
- </td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform">
- <input type="text" value="<?php echo htmlentities((isset($class_array['ac_name']) && ($class_array['ac_name'] !== '')?$class_array['ac_name']:'')); ?>" name="ac_name" id="ac_name" class="txt">
- </td>
- <td class="vatop tips"><?php echo htmlentities(lang('ac_name_tips')); ?></td>
- </tr>
- <?php if(empty($class_array) || (($class_array instanceof \think\Collection || $class_array instanceof \think\Paginator ) && $class_array->isEmpty())): ?>
- <tr>
- <td colspan="2" class="required">
- <label for="parent_id"><?php echo htmlentities(lang('article_class_add_sup_class')); ?>:</label>
- </td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform">
- <select name="ac_parent_id" id="ac_parent_id">
- <option value="0"><?php echo htmlentities(lang('ds_please_choose')); ?>...</option>
- <?php if(!(empty($parent_list) || (($parent_list instanceof \think\Collection || $parent_list instanceof \think\Paginator ) && $parent_list->isEmpty()))): if(is_array($parent_list) || $parent_list instanceof \think\Collection || $parent_list instanceof \think\Paginator): if( count($parent_list)==0 ) : echo "" ;else: foreach($parent_list as $key=>$v): ?>
- <option <?php if($ac_parent_id == $v['ac_id']): ?>selected='selected'<?php endif; ?> value="<?php echo htmlentities($v['ac_id']); ?>"><?php echo $v['ac_name']; ?></option>
- <?php endforeach; endif; else: echo "" ;endif; ?>
- <?php endif; ?>
- </select>
- </td>
- <td class="vatop tips"><?php echo htmlentities(lang('article_class_add_sup_class_notice')); ?></td>
- </tr>
- <?php endif; ?>
- <tr>
- <td colspan="2" class="required">
- <label for="ac_sort"><?php echo htmlentities(lang('ds_sort')); ?>:</label>
- </td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform">
- <input type="text" value="<?php echo htmlentities((isset($class_array['ac_sort']) && ($class_array['ac_sort'] !== '')?$class_array['ac_sort']:'')); ?>" name="ac_sort" id="ac_sort" class="txt"></td>
- <td class="vatop tips"><?php echo htmlentities(lang('article_class_add_update_sort')); ?></td>
- </tr>
- </tbody>
- <tfoot>
- <tr class="tfoot">
- <td colspan="15" >
- <input class="btn" type="submit" value="<?php echo htmlentities(lang('ds_submit')); ?>"/>
- </td>
- </tr>
- </tfoot>
- </table>
- </form>
- </div>
- <script>
- $(document).ready(function () {
- $('#article_class_form').validate({
- errorPlacement: function (error, element) {
- error.appendTo(element.parent().parent().prev().find('td:first'));
- },
- rules: {
- ac_name: {
- required: true,
- remote: {
- url: ADMINSITEURL + '/Articleclass/Ajax/branch/check_class_name',
- type: 'get',
- data: {
- ac_name: function () {
- return $('#ac_name').val();
- },
- ac_parent_id: function () {
- return $('#ac_parent_id').val();
- },
- ac_id: "<?php echo htmlentities((isset($class_array['ac_id']) && ($class_array['ac_id'] !== '')?$class_array['ac_id']:'')); ?>"
- }
- }
- },
- ac_sort: {
- number: true,
- range : [0,255]
- }
- },
- messages: {
- ac_name: {
- required: "<?php echo htmlentities(lang('article_class_add_name_null')); ?>",
- remote: "<?php echo htmlentities(lang('article_class_add_name_exists')); ?>"
- },
- ac_sort: {
- number: "<?php echo htmlentities(lang('article_class_add_sort_int')); ?>",
- range: '<?php echo htmlentities(lang('ds_range_0_255')); ?>'
- }
- }
- });
- });
- </script>
|