| Server IP : 103.48.194.25 / Your IP : 216.73.217.33 Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33 System : Linux VMHostDefault 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64 User : sieuthimay ( 1016) PHP Version : 8.2.20 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/nhadatkhangdien.net-bk/public_html/admin/templates/infodoitac/ |
Upload File : |
<script type="text/javascript">
tinyMCE.init({
// General options
mode : "exact",
elements : "noidung",
theme : "advanced",
convert_urls : false,
plugins : "autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,imagemanager,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave,visualblocks",
height:"500px",
width:"100%",
remove_script_host : false,
// Theme options
theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizeselect",
theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor",
theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
// Example content CSS (should be your site CSS)
content_css : "css/content.css",
// Drop lists for link/image/media/template dialogs
template_external_list_url : "lists/template_list.js",
external_link_list_url : "lists/link_list.js",
external_image_list_url : "lists/image_list.js",
media_external_list_url : "lists/media_list.js",
// Style formats
style_formats : [
{title : 'Bold text', inline : 'b'},
{title : 'Red text', inline : 'span', styles : {color : '#ff0000'}},
{title : 'Red header', block : 'h1', styles : {color : '#ff0000'}},
{title : 'Example 1', inline : 'span', classes : 'example1'},
{title : 'Example 2', inline : 'span', classes : 'example2'},
{title : 'Table styles'},
{title : 'Table row 1', selector : 'tr', classes : 'tablerow1'}
],
// Replace values for the template plugin
template_replace_values : {
username : "Some User",
staffid : "991234"
}
});
</script>
<h3>Thêm mới</h3>
<?php
function get_info_item()
{
$sql_huyen="select * from table_infodoitac_item order by stt,id desc ";
$result=mysql_query($sql_huyen);
$str='
<select id="id_item" name="id_item"">
<option value="0">Chọn danh mục</option>
';
while ($row_huyen=@mysql_fetch_array($result))
{
if($row_huyen["id"]==(int)@$_REQUEST["id_item"])
$selected="selected";
else
$selected="";
$str.='<option value='.$row_huyen["id"].' '.$selected.'>'.$row_huyen["ten"].'</option>';
}
$str.='</select>';
return $str;
}
?>
<form name="frm" method="post" action="index.php?com=infodoitac&act=save" enctype="multipart/form-data" class="nhaplieu">
<?php if (@$_REQUEST['act']=='edit')
{?>
<b>Hình hiện tại:</b><img src="<?=_upload_tintuc.$item['photo']?>" alt="NO PHOTO" style="max-width:40px;"/><br />
<?php }?>
<br />
<b>Hình ảnh:</b> <input type="file" name="file" /> <?=_news_type?><br /><br />
<b>Tiêu đề</b> <input type="text" name="ten" value="<?=@$item['ten']?>" class="input" /><br />
<b>Link</b>
<div>
<input type="text" name="mota" value="<?=@$item['mota']?>" class="input" /><br />
<!--<textarea name="mota" cols="50" rows="5" id="mota"><?=@$item['mota']?></textarea>-->
</div>
<!-- <b>Nội dung</b><br/>
<div>
<textarea name="noidung" id="noidung"><?=$item['noidung']?></textarea></div>-->
<b>Số thứ tự</b> <input type="text" name="stt" value="<?=isset($item['stt'])?$item['stt']:1?>" style="width:30px"><br>
<b>Hiển thị</b> <input type="checkbox" name="hienthi" <?=(!isset($item['hienthi']) || $item['hienthi']==1)?'checked="checked"':''?>><br />
<input type="hidden" name="id" id="id" value="<?=@$item['id']?>" />
<input type="submit" value="Lưu" class="btn" />
<input type="button" value="Thoát" onclick="javascript:window.location='index.php?com=infodoitac&act=man'" class="btn" />
</form>