59 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			59 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
|     class UAR_TREND extends UAR
 | |
|     {
 | |
|         public function uar_trend_javainit()
 | |
|         {
 | |
| 
 | |
|         }
 | |
| 
 | |
|         public function fn_trend_init()
 | |
|         {
 | |
|             if(isset($_REQUEST['task'])){$task=trim(strtolower($_REQUEST['task']));}
 | |
|             if(isset($_POST['task'])){$task=trim(strtolower($_POST['task']));}
 | |
|             if($_REQUEST||$_POST){if($_REQUEST['sec']||$_POST['sec']){$task=$this->dec($task);}}
 | |
| 
 | |
|             switch($task)
 | |
|             {
 | |
|                 case "default":
 | |
|                     $this->fn_default_trend();
 | |
|                 break;
 | |
| 
 | |
|                 case $task:
 | |
|                     $task="fn_".$task;
 | |
|                     if(method_exists($this,$task)){$this->$task();}
 | |
|                 break;
 | |
| 
 | |
|                 default:
 | |
|                     $this->fn_default_trend();
 | |
|                 break;
 | |
|             }
 | |
|         }
 | |
|         public function fn_default_trend()
 | |
|         {
 | |
|             echo $this->FN_CREATEHEADER();
 | |
| 
 | |
|             echo "<style>
 | |
|                       .besidebtnsave {margin-left:104px;margin-top:-6px;position:absolute;}
 | |
|                       .besidebtnupdate {margin-left:198px;margin-top:-6px;position:absolute;}
 | |
|                       .besidebtndelete {margin-left:288px;margin-top:-6px;position:absolute;}
 | |
|                   </style>";
 | |
|             echo "<script>
 | |
|                        var myForm,myFormsearch,dgtra;
 | |
|                        function initObject()
 | |
|                        {";
 | |
| 
 | |
|             echo "     }
 | |
| 
 | |
|                        function fn_grid_loaddata()
 | |
|                        {";
 | |
| 
 | |
|             echo "     }
 | |
|                    </script>";
 | |
|             echo $this->FN_CLOSEHEADER();
 | |
|             echo $this->FN_CREATEBODY("e8f1ff");
 | |
| 
 | |
|             echo $this->FN_CREATEFOOTER();
 | |
| 
 | |
|         }
 | |
|     }
 | |
| ?>
 |