Server : nginx/1.22.1
System : Linux iZwz9daxib3w3i063fw434Z 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64
User : www ( 1000)
PHP Version : 5.6.40
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
Directory :  /www/wwwroot/www.jkmold.com/phpcms/modules/content/templates/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : /www/wwwroot/www.jkmold.com/phpcms/modules/content/templates/sitemodel_import.tpl.php
<?php

defined('IN_ADMIN') or exit('No permission resources.');

include $this->admin_tpl('header','admin');

?>

<script type="text/javascript">

<!--

	$(function(){

		$.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:'50'}, function(){this.close();$(obj).focus();})}});

		$("#name").formValidator({onshow:"<?php echo L("input").L('model_name')?>",onfocus:"<?php echo L("input").L('model_name')?>",oncorrect:"<?php echo L('input_right');?>"}).inputValidator({min:1,onerror:"<?php echo L("input").L('model_name')?>"});

		$("#tablename").formValidator({onshow:"<?php echo L("input").L('model_tablename')?>",onfocus:"<?php echo L("input").L('model_tablename')?>"}).regexValidator({regexp:"^([a-zA-Z0-9]|[_]){0,20}$",onerror:"<?php echo L("model_tablename_wrong");?>"}).inputValidator({min:1,onerror:"<?php echo L("input").L('model_name')?>"}).ajaxValidator({type : "get",url : "",data :"m=content&c=sitemodel&a=public_check_tablename",datatype : "html",async:'false',success : function(data){	if( data == "1" ){return true;}else{return false;}},buttons: $("#dosubmit"),onerror : "<?php echo L('model_tablename').L('exists')?>",onwait : "<?php echo L('connecting')?>"});		

	})

//-->

</script>

<div class="pad-lr-10">

<form action="?m=content&c=sitemodel&a=import" method="post" id="myform" enctype="multipart/form-data">

<fieldset>

	<legend><?php echo L('basic_configuration')?></legend>

	<table width="100%"  class="table_form">

  <tr>

    <th width="120"><?php echo L('model_name')?>:</th>

    <td class="y-bg"><input type="text" class="input-text" name="info[modelname]" id="name" size="30" /></td>

  </tr>

  <tr>

    <th><?php echo L('model_tablename')?>:</th>

    <td class="y-bg"><input type="text" class="input-text" name="info[tablename]" id="tablename" size="30" /></td>

  </tr>

    <tr>

    <th><?php echo L('description')?>:</th>

    <td class="y-bg"><input type="text" class="input-text" name="info[description]" id="description"  size="30"/></td>

  </tr>

  <tr>

		<th><?php echo L('import_model');?></th>

		<td>

		<input type="file" name="model_import" value="" class="input-text" id="model_import"></input>

		</td>

	</tr>

</table>

</fieldset>

<div class="bk15"></div>

<fieldset>

	<legend><?php echo L('template_setting')?></legend>

	<table width="100%"  class="table_form">

 <tr>

  <th width="200"><?php echo L('available_styles');?>:</th>

        <td>

		<?php echo form::select($style_list, '', 'name="default_style" id="default_style" onchange="load_file_list(this.value)"', L('please_select'))?> 

		</td>

</tr>

		<tr>

        <th width="200"><?php echo L('category_index_tpl')?>:</th>

        <td  id="category_template">

		</td>

      </tr>

	  <tr>

        <th width="200"><?php echo L('category_list_tpl')?>:</th>

        <td  id="list_template">

		</td>

      </tr>

	  <tr>

        <th width="200"><?php echo L('content_tpl')?>:</th>

        <td  id="show_template">

		</td>

      </tr>

</table>

</fieldset>

<div class="bk15"></div>

<div class="btn"><input type="submit" id="dosubmit" name="dosubmit" value="<?php echo L('submit');?>" class="button"/></div> 

</form>

</div>

<script language="JavaScript">

<!--

	function load_file_list(id) {

		$.getJSON('?m=admin&c=category&a=public_tpl_file_list&style='+id+'&catid=', function(data){$('#category_template').html(data.category_template);$('#list_template').html(data.list_template);$('#show_template').html(data.show_template);});

	}

	//-->

</script>

</body>

</html>