PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/mytube.pm/dumper/inc/sqlbrowser/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/mytube.pm/dumper/inc/sqlbrowser/sql_record_insert_inputmask.php |
<?php // insert a new record $tpl=new MSDTemplate(); $tpl->set_filenames(array( 'show' => './tpl/sqlbrowser/sql_record_insert_inputmask.tpl')); $sqledit="SHOW FIELDS FROM `$tablename`"; $res=MSD_query($sqledit); $num=mysqli_num_rows($res); $feldnamen=""; for ($x=0; $x<$num; $x++) { $row=mysqli_fetch_object($res); $feldnamen.=$row->Field.'|'; $tpl->assign_block_vars('ROW',array( 'CLASS' => ($x%2) ? 1 : 2, 'FIELD_NAME' => $row->Field, 'FIELD_ID' => correct_post_index($row->Field))); $type=strtoupper($row->Type); if (strtoupper($row->Null)=='YES') { //field is nullable $tpl->assign_block_vars('ROW.IS_NULLABLE',array()); } if (in_array($type,array( 'BLOB', 'TEXT'))) $tpl->assign_block_vars('ROW.IS_TEXTAREA',array()); else $tpl->assign_block_vars('ROW.IS_TEXTINPUT',array()); } $tpl->assign_vars(array( 'HIDDEN_FIELDS' => FormHiddenParams(), 'FIELDNAMES' => substr($feldnamen,0,strlen($feldnamen)-1), 'SQL_STATEMENT' => my_quotes($sql['sql_statement']))); $tpl->pparse('show');