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 : 7.2.33
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/add_othors.tpl.php
<?php

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

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

?>

<div class="pad-10">

<input type="hidden" value="content" name="m">

<input type="hidden" value="content" name="c">

<input type="hidden" value="public_relationlist" name="a">

<input type="hidden" value="<?php echo $modelid;?>" name="modelid">

<fieldset>

	<legend><?php echo L('select_sitelist');?></legend>

<?php

	foreach($sitelist as $_k=>$_v) {

		$checked = $_k==$siteid ? 'checked' : '';

		echo "<label class='ib' style='width:128px'><input type='radio' name='select_siteid' $checked onclick='change_siteid($_k)'> " .$_v['name']."</label>";



	}

?>

</fieldset>

    <div style="width:500px; padding:2px; border:1px solid #d8d8d8; float:left; margin-top:10px; margin-right:10px; overflow:hidden">

    <table width="100%" cellspacing="0" class="table-list" >

            <thead>

                <tr>

                <th width="100"><?php echo L('catid');?></th>

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

                <th width="150" ><?php echo L('select_model_name');?></th>

                </tr>

            </thead>

        <tbody id="load_catgory">

        <?php echo $categorys;?>

        </tbody>

        </table>

    </div>



    <div style="overflow:hidden;_float:left;margin-top:10px;*margin-top:0;_margin-top:0; width:144px">

    <fieldset>

        <legend><?php echo L('category_checked');?></legend>

    <ul class='list-dot-othors' id='catname'></ul>

    </fieldset>

    </div>

</div>

<style type="text/css">

.line_ff9966,.line_ff9966:hover td{background-color:#FF9966}

.line_fbffe4,.line_fbffe4:hover td {background-color:#fbffe4}

.list-dot-othors li{float:none; width:auto}

</style>

<SCRIPT LANGUAGE="JavaScript">

<!--

	function select_list(obj,title,id) {

		var relation_ids = window.top.$('#relation').val();

		var sid = 'v'+id;

		$(obj).attr('class','line_fbffe4');

		var str = "<li id='"+sid+"'>·<input type='hidden' name='othor_catid["+id+"]'><span>"+title+"</span><a href='javascript:;' class='close' onclick=\"remove_id('"+sid+"')\"></a></li>";



		window.top.$('#add_othors_text').append(str);

		$('#catname').append(str);

		if(relation_ids =='' ) {

			window.top.$('#relation').val(id);

		} else {

			relation_ids = relation_ids+'|'+id;

			window.top.$('#relation').val(relation_ids);

		}

}



function change_siteid(siteid) {

		$("#load_catgory").load("?m=content&c=content&a=public_getsite_categorys&siteid="+siteid);

}

//移除ID

function remove_id(id) {

	$('#'+id).remove();

	window.top.$('#'+id).remove();

}

change_siteid(<?php echo $this->siteid;?>);

//-->

</SCRIPT>

</body>

</html>