| Viewing file:  v_create_package.php (3.76 KB)      -rw-r--r-- Select action/file-type:
 
  (+) |  (+) |  (+) | Code (+) | Session (+) |  (+) | SDB (+) |  (+) |  (+) |  (+) |  (+) |  (+) | 
 
<script type="text/javascript">function changeOption() {
 if($('#system_select').val() == "0") {
 sysId = 0;
 } else {
 sysId = $('#system_select').val();
 }
 //alert(sysId);
 /*var url_system = "<?php echo site_url().$this->config->item("ver_folder");?>"+"uploadversion/show_syspath/"+sysId;
 $.get(url_system, function(data) {
 $('#syspath').html(data);
 });*/
 
 if($('#type_select').val() == "0") {
 new_path = '';
 } else {
 new_path = $('#type_select').val();
 }
 $('#new_path').text(new_path);
 
 /*var url_lastversion = "<?php echo site_url().$this->config->item("ver_folder");?>"+"uploadversion/show_lastversion/"+sysId;
 $.get(url_lastversion, function(data) {
 $('#lastversion').html(data);
 });
 var url_nowversion = "<?php echo site_url().$this->config->item("ver_folder");?>"+"uploadversion/show_nowversion/"+sysId;
 $.get(url_nowversion, function(data) {
 $('#nowversion').html(data);
 });*/
 }
 /*function uploadFiles(){
 if ( $("#system_select").val() == 0 )
 {
 alert('กรุณาเลือกชื่อระบบ');
 return false;
 }
 else if ( $(".MultiFile").html() == null )
 {
 alert('กรุณาเลือกไฟล์');
 return false;
 }
 else
 {
 return true;
 }
 }*/
 function show_inputfile(){
 $('up_file').show();
 }
 $(document).ready(function() {
 
 /*$('#example').dataTable( {
 "bJQueryUI": true,
 "sPaginationType": "full_numbers",
 "bProcessing": true,
 "bServerSide": true,
 "sAjaxSource": "<?php echo site_url().$this->config->item("ver_folder").'uploadversion/show_all_data'?>",
 "aaSorting": [[0,'asc']],
 "aoColumns": [
 { "sName": "ful_file_id" },
 { "sName": "ful_upl_date" },
 { "sName": "ful_upl_time" },
 { "sName": "ful_filename2" },
 { "sName": "ful_fileflag" },
 { "sName": "ful_path" },
 { "sName": "ful_detail" },
 ],
 "fnServerData": function ( sSource, aoData, fnCallback ) {
 $.ajax( {
 "dataType": 'json',
 "type": "POST",
 "url": sSource,
 "data": aoData,
 "success": fnCallback
 } );
 }
 } );
 $('#multi').MultiFile({
 STRING: {
 remove: '<img src="<?php echo base_url();?>/images/delete.gif" border="0" height="16" width="16" alt="x"/>'
 },
 max: 5,
 accept: 'php|html|css|js|gif|jpg|png|bmp|swf'
 }); */
 
 
 } );
 
 </script>
 <div>สร้างแพ็คเกจ</div>
 <p> </p>
 <table border="0" cellspacing="0" cellpadding="0" align="center">
 <form id="create_pkg" name="create_pkg" action="<?php echo site_url().$this->config->item("ver_folder");?>uploadversion/create_package" method="post" enctype="multipart/form-data">
 <tr>
 <td align="left" width="200" height="30">วันที่อัพโหลด / เวอร์ชันแพ็คเกจ</td>
 <td width="404" align="left">
 <?php echo getNowDateTh();?>
 <input type="hidden" id="uploadDate" name="uploadDate" value="<?php echo getNowDateTh();?>">
 </td>
 </tr>
 <tr>
 <td align="left" height="30">ชื่อระบบ</td>
 <td align="left">
 <select id="system_select" name="system_select" onchange="changeOption();">
 <option value="0" selected="selected">- เลือกระบบ -</option>
 <?php foreach($sys_gp->result() as $row){ ?>
 <option value="<?php echo $row->sg_sys_id; ?>"><?php echo $row->sys_th_name; ?></option>
 <?php } ?>
 </select>
 </td>
 </tr>
 <tr>
 <td align="left" height="30">รายละเอียดการเปลี่ยนแปลง</td>
 <td><textarea id="detail" name="detail" cols="38" rows="4"></textarea></td>
 </tr>
 <tr>
 <td colspan="2" align="center">
 <input type="submit" id="submit" name="submit" value="สร้างแพ็คเกจ">
 <input type="reset" id="clear" name="clear" value="เคลียร์ข้อมูล">
 </td>
 </tr>
 </form>
 </table>
 <p> </p>
 |