Пример #1
0
$news = new table_class('fb_file_list_items');
if ($id) {
    $news = $news->find($id);
}
$news->list_id = $list_id;
judge_role();
css_include_tag('admin', 'colorbox', 'autocomplete');
use_jquery();
validate_form("news_edit");
js_include_tag('category_class.js', 'admin/news_pub', 'admin/list/file_list_item_edit.js', 'jquery.colorbox-min.js', 'jquery-ui-1.7.2.custom.min.js', '../ckeditor/ckeditor.js', 'autocomplete.jquery', 'pubfun');
?>
</head>
<body style="background:#E1F0F7">
	<?php 
$category = new category_class('file_list');
$category->echo_jsdata();
if ($id) {
    $category_id = $news->category_id;
} else {
    $category_id = -1;
}
if (empty($category_id)) {
    $category_id = -1;
}
?>
	<form id="news_edit" enctype="multipart/form-data" action="file_list_item_edit.post.php" method="post"> 
	<table width="795" border="0">
		<tr class=tr1>
			<td colspan="2" width="795">  发布榜单项 <a href="<?php 
echo "file_list_items_list.php?id={$list_id}";
?>
Пример #2
0
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv=Content-Type content="text/html; charset=utf-8">
	<meta http-equiv=Content-Language content=zh-CN>
	<title>编辑英语新闻</title>
	<?php 
//css_include_tag('admin','thickbox');
//use_jquery();
//validate_form("news_edit");
js_include_tag('admin/news/english_news.edit');
?>
</head>
<?php 
//initialize the categroy;
$category = new category_class('news');
$category->echo_jsdata('category1');
?>
<body style="background:#E1F0F7">
	<form id="news_edit_en" enctype="multipart/form-data" action="english_news.post.php" method="post"> 
	<table width="755" border="0">
		<tr class=tr1>
			<td colspan="2" width="795">  编辑新闻英语版(<span style="color:red"><?php 
echo $ch_news->title;
?>
</span>)</td>
		</tr>
		<tr class=tr4>
			<td width="130">标题/短标题</td><td width="695" align="left"><input id="title_en" type="text" name="news[title]" value="<?php 
echo $news->title;
?>
"> / <input id="short_title_en" type="text" name="news[short_title]" value="<?php