예제 #1
0
					{ 
							required: "กรุณากรอกหัวข้อค่ะ"
					}
				}
			});		
	})
</script>

<h1>English Zone</h1>
<form id="frmMain" action="english_zones/admin/english_zones/save/<?php 
echo $english_zone->id;
?>
" method="post" enctype="multipart/form-data">
<table class="form">
	<?php 
echo approver_dropdown($english_zone);
?>
	<?php 
echo approver_form($english_zone);
?>
	<tr>
		<th>ไฟล์แนบ :</th>
		<td><input type="text" name="file" value="<?php 
echo $english_zone->file;
?>
"/><input type="button" name="browse" value="เลือกไฟล์" onclick="browser($(this).prev(),'english_zones')" /></td>
	</tr>
	<tr>
		<th>หัวข้อ :</th>
		<td>
			<input rel="th" type="text" name="title" class="full" value="<?php 
예제 #2
0
			{ 
				required: "กรุณากรอกหัวข้อค่ะ"
			}
		}
	});
})
</script>
<h1>ประกาศ/จัดจ้าง</h1>
<form id="frmMain" action="notices/admin/notices/save/<?php 
echo $notice->id;
?>
" method="post" enctype="multipart/form-data" >
<table class="form">
	<tr class="trlang"><th></th><td class="lang"><a href="th" class="active flag th">ไทย</a><a href="en" class="flag en">อังกฤษ</a></td></tr>
	<?php 
echo approver_dropdown($notice);
?>
	<?php 
echo approver_form($notice);
?>
	<tr><th></th><td><img class="img" style="width:77px; height:64px;" src="<?php 
echo is_file('uploads/notice/thumbnail/' . $notice->image) ? 'uploads/notice/thumbnail/' . $notice->image : 'media/images/dummy/77x64.gif';
?>
"  /></td></tr>
	<tr><th>รูปภาพ :</th><td><input type="file" name="image" /></td></tr>
	<tr><th>สถานะ :</th><td><?php 
echo form_dropdown('category_id', $notice->category->get_option(), $notice->category_id, '');
?>
</td></tr>
	<tr><th>เริ่ม :</th><td><input type="text" name="start_date" value="<?php 
echo DB2Date($notice->start_date ? $notice->start_date : date("Y-m-d"));
예제 #3
0
			}
		}
	});		
})
</script>
<h1>ข่าวประชาสัมพันธ์</h1>
<form id="frmMain" action="informations/admin/informations/save/<?php 
echo $information->id;
?>
" method="post" enctype="multipart/form-data" >
	
<table class="form">
	<tr class="trlang"><th></th><td class="lang"><a href="th" class="active flag th">ไทย</a><a href="en" class="flag en">อังกฤษ</a></td></tr>

	<?php 
echo approver_dropdown($information);
?>
	<?php 
echo approver_form($information);
?>
	<tr><th></th><td><img class="img" style="width:77px; height:64px;" src="<?php 
echo is_file('uploads/information/thumbnail/' . $information->image) ? 'uploads/information/thumbnail/' . $information->image : 'media/images/dummy/77x64.gif';
?>
"  /></td></tr>
	<tr><th>รูปภาพ :</th><td><input type="file" name="image" /></td></tr>
	<tr><th>หมวดหมู่ :</th><td><?php 
echo form_dropdown('category_id', $information->category->get_option(), $information->category_id, '');
?>
</td></tr>
	<tr><th>เริ่ม :</th><td><input type="text" name="start_date" value="<?php 
echo DB2Date($information->start_date ? $information->start_date : date("Y-m-d"));
예제 #4
0
							required: "กรุณากรอกหัวข้อค่ะ"
					}
				}
			});		
	})
</script>

<h1>สื่อเผยแพร่</h1>
<form id="frmMain" action="mediapublics/admin/mediapublics/save/<?php 
echo $mediapublics->id;
?>
" method="post" enctype="multipart/form-data">
<table class="form">
	<tr class="trlang"><th></th><td class="lang"><a href="th" class="active flag th">ไทย</a><a href="en" class="flag en">อังกฤษ</a></td></tr>
	<?php 
echo approver_dropdown($mediapublics);
?>
	<?php 
echo approver_form($mediapublics);
?>
	<tr>
		<th></th>
		<td><img class="img" style="max-height:90px; max-wide:120px;" src="<?php 
echo $mediapublics->image ? $mediapublics->image : 'themes/thaigcd/photo/nophoto.gif';
?>
"  /></td></tr>
	<tr>
		<th>รูปภาพ :</th>
		<td><input type="text" name="image" value="<?php 
echo $mediapublics->image;
?>
예제 #5
0
				}
			});		
	})
</script>
<!-- Load TinyMCE -->
<script type="text/javascript" src="media/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript" src="media/tiny_mce/config.js"></script>
<h1>สื่อมัลติมีเดีย</h1>
<form id="frmMain" action="mediafiles/admin/mediafiles/save/<?php 
echo $mediafiles->id;
?>
" method="post" enctype="multipart/form-data">
<table class="form">
	<tr class="trlang"><th></th><td class="lang"><a href="th" class="active flag th">ไทย</a><a href="en" class="flag en">อังกฤษ</a></td></tr>
	<?php 
echo approver_dropdown($mediafiles);
?>
	<?php 
echo approver_form($mediafiles);
?>
	<?php 
if (is_file('uploads/mediafiles/' . $mediafiles->image)) {
    ?>
		<tr>
			<th></th>
			<td><img style="max-height:90px; max-wide:120px;" src="uploads/mediafiles/<?php 
    echo $mediafiles->image;
    ?>
" /></td>
		</tr>
	<?php 
예제 #6
0
				{ 
					required: "กรุณากรอกหัวข้อค่ะ"
				}
			}
		});
	})
</script>
<h1>ข่าวสารผู้บริหาร</h1>
<form id="frmMain" action="executives/admin/executives/save/<?php 
echo $executive->id;
?>
" method="post" >
<table class="form">
	<tr class="trlang"><th></th><td class="lang"><a href="th" class="active flag th">ไทย</a><a href="en" class="flag en">อังกฤษ</a></td></tr>
	<?php 
echo approver_dropdown($executive);
?>
	<?php 
echo approver_form($executive);
?>
	<tr><th>เริ่ม :</th><td><input type="text" name="start_date" value="<?php 
echo DB2Date($executive->start_date ? $executive->start_date : date("Y-m-d"));
?>
" class="datepicker" /></td></tr>
	<tr><th>สิ้นสุด :</th><td><input type="text" name="end_date" value="<?php 
echo DB2Date($executive->end_date);
?>
" class="datepicker" /></td></tr>
	<tr>
		<th>หัวข้อ :</th>
		<td>
예제 #7
0
			$(".lang a").click(function(){
				$("[rel=" + $(this).attr("href") + "]").show().siblings().hide();
				$(this).addClass('active').siblings().removeClass('active');
				return false;
			})
	})
</script>
<h1>ไฮไลท์</h1>
<form action="hilights/admin/hilights/save/<?php 
echo $hilight->id;
?>
" method="post" enctype="multipart/form-data" >
<table class="form">
	<tr class="trlang"><th></th><td class="lang"><a href="th" class="active flag th">ไทย</a><a href="en" class="flag en">อังกฤษ</a></td></tr>
	<?php 
echo approver_dropdown($hilight);
?>
	<?php 
echo approver_form($hilight);
?>
	<tr><th></th><td><img class="img" style="width:656px; height:253px;" src="<?php 
echo is_file('uploads/hilight/' . $hilight->image) ? 'uploads/hilight/' . $hilight->image : 'media/images/dummy/656x253.gif';
?>
"  /></td></tr>
	<tr><th>รูปภาพ :</th><td><input type="file" name="image" /></td></tr>
	<tr><th>ไฟล์แนบ :</th><td><input type="text" name="pdf" value="<?php 
echo $hilight->pdf;
?>
"/><input type="button" name="browse" value="เลือกไฟล์" onclick="browser($(this).prev(),'pdf')" /></td></tr>
	<tr>
		<th>หัวข้อ :</th>
예제 #8
0
					{ 
							required: "กรุณากรอกหัวข้อค่ะ"
					}
				}
			});		
	})
</script>
<h1 style="margin:0 0 15px;">อัลบั้ม</h1>
<form id="frmMain" method="post" action="galleries/admin/categories/save/<?php 
echo $category->id;
?>
" enctype="multipart/form-data">
	<table class="form">
		<tr class="trlang"><th></th><td class="lang"><a href="th" class="active flag th">ไทย</a><a href="en" class="flag en">อังกฤษ</a></td></tr>
		<?php 
echo approver_dropdown($category);
?>
		<?php 
echo approver_form($category);
?>
		<tr>
			<th>ชื่ออัลบั้ม :</th>
			<td>
				<input type="text" name="name[th]" rel="th" value="<?php 
echo lang_decode($category->name, 'th');
?>
" />
				<input type="text" name="name[en]" rel="en" value="<?php 
echo lang_decode($category->name, 'en');
?>
" />
예제 #9
0
		if($('select[name=category_id]').val()==17){
				$(".cat17").show();
			}else{
				$(".cat17").hide();
			}
})
</script>
<h1>ความรู้วิชาการ</h1>
<form id="frmMain" action="knowledges/admin/knowledges/save/<?php 
echo $knowledge->id;
?>
" method="post" enctype="multipart/form-data" >
<table class="form">
	<tr class="trlang"><th></th><td class="lang"><a href="th" class="active flag th">ไทย</a><a href="en" class="flag en">อังกฤษ</a></td></tr>
	<?php 
echo approver_dropdown($knowledge);
?>
	<?php 
echo approver_form($knowledge);
?>
	<tr><th></th><td><img class="img" style="width:77px; height:64px;" src="<?php 
echo is_file('uploads/knowledge/thumbnail/' . $knowledge->image) ? 'uploads/knowledge/thumbnail/' . $knowledge->image : 'media/images/dummy/77x64.gif';
?>
"  /></td></tr>
	<tr><th>รูปภาพ :</th><td><input type="file" name="image" /></td></tr>
	<tr><th>หมวดหมู่ :</th><td><?php 
echo form_dropdown('category_id', $knowledge->category->get_option(), $knowledge->category_id, '');
?>
</td></tr>
	<tr><th>เริ่ม :</th><td><input type="text" name="start_date" value="<?php 
echo DB2Date($knowledge->start_date ? $knowledge->start_date : date("Y-m-d"));
예제 #10
0
					{ 
							required: "กรุณากรอกหัวข้อค่ะ"
					}
				}
			});		
	})
</script>
<h1>กฎหมายที่เกี่ยวข้อง</h1>
<form id="frmMain" action="laws/admin/laws/save/<?php 
echo $law->id;
?>
" method="post" >
<table class="form">
	<tr class="trlang"><th></th><td class="lang"><a href="th" class="active flag th">ไทย</a><a href="en" class="flag en">อังกฤษ</a></td></tr>
	<?php 
echo approver_dropdown($law);
?>
	<?php 
echo approver_form($law);
?>
	<tr><th>หมวดหมู่ :</th><td><?php 
echo form_dropdown('category_id', $law->category->get_option(), $law->category_id, '');
?>
</td></tr>
	<tr><th>เริ่ม :</th><td><input type="text" name="start_date" value="<?php 
echo DB2Date($law->start_date ? $law->start_date : date("Y-m-d"));
?>
" class="datepicker" /></td></tr>
	<tr><th>สิ้นสุด :</th><td><input type="text" name="end_date" value="<?php 
echo DB2Date($law->end_date);
?>