[ PHPXref.com ] [ Generated: Sun Jul 20 19:34:45 2008 ] [ PHP DB Designer 1.01 ]
[ Index ]     [ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/wind/ -> general.php (source)

   1  <?
   2  include_once  "../db/session.php";
   3  
   4  $tab_column       = get_tab_info();
   5  $script_tabs      = get_script_tabs();
   6  $script_contr     = get_script_contr();
   7  $tab_pos          = get_tab_pos();
   8  $tab_pk           = get_p_k_contr();
   9  
  10  //check_vis_ _|_ 

  11  ?>
  12  <html>
  13  <head>
  14  <link rel="SHORTCUT ICON" href="../images/favicon.ico" />
  15  <? if(0){ ?>
  16  <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
  17  <link rel="stylesheet" type="text/css" href="../styles/default/style1.css">
  18  <? } ?>
  19  <meta http-equiv="Content-Type" content="text/html; charset=<? echo $charset ?>" />
  20  <link rel="stylesheet" type="text/css" href="../styles/<? echo $_SESSION['STYLE'] ?>/style1.css">
  21  
  22  
  23  <title>PHP DB Designer</title>
  24  </head>
  25  
  26  <? 
  27  echo "
  28  <script>
  29  var driver = '".$_SESSION["DRIVER"]."';
  30  var LangSelectPrimaryKey = '$LangSelectPrimaryKey';
  31  var LangSelectForeignKey = '$LangSelectForeignKey';
  32  </script>"; 
  33  ?>
  34  <script language=javascript src="../scripts/move.js" type=text/javascript></script>
  35  <?
  36  echo $script_tabs.$script_contr;
  37  ?>
  38  <body onLoad="Main()" class="general_body" marginheight="0" marginwidth="0">
  39  <form action="../db/<? echo $_SESSION['DRIVER']?>/action/save_pos/save_pos.php" method="post" name="form1">
  40  <table id="osn_tab" style=" cursor:default;
  41    width: <? if( isset($tab_pos['PHP_DB_DESIGNER_OSN_TAB_POS']) ) echo $tab_pos['PHP_DB_DESIGNER_OSN_TAB_POS']['X']; else echo "1000"; ?>;
  42    height:<? if( isset($tab_pos['PHP_DB_DESIGNER_OSN_TAB_POS']) ) echo $tab_pos['PHP_DB_DESIGNER_OSN_TAB_POS']['Y']; else echo "750"; ?>;" 
  43  border="0" cellpadding="0" cellspacing="0">
  44    <tr>
  45      <td width="150" rowspan="2" align="center" valign="top" nowrap class="left_panel">
  46        <div align="center"><img onClick="var WinAbout = 
  47        window.open('about.php','wind1', 'top=200,left=200,width=300,height=150,resizable=yes,scrollbars=no,menubar=no');" src="../images/davinci.png" border="0">      </div>
  48        <div style="text-align:center; color:#222222; font-family:Tahoma; font-size:10px; 
  49        font-weight:bold; margin-top:10px;margin-bottom:10px;"><? echo $_SESSION['USER']."@".$_SESSION['DATABASE']?></div>
  50        <div align="left" style="padding-left:20px">
  51          <img title="Hite/Show all" alt="v" class="L_butt" src="../images/downarrow1.png" onClick="Hide_tab_all(this)" >
  52          <img title="-Hite/-Show not relation" alt="v" class="L_butt" src="../images/downarrow2.png" onClick="No_have_constr(this)" >
  53        </div>
  54        <div class="scroll_tab">
  55          <table width="100%" style="padding-left:3px;">
  56            <?
  57          for ( $i=0; $i < sizeof( $_SESSION['TABLE_NAME'] ); $i++ ) 
  58          {
  59          ?>
  60            <tr>
  61              <td title="update table" width="1px" onMouseOver="this.className='L_butt2_2'" onMouseOut="this.className='L_butt2_1'" ><img onClick="Start_tab_upd('<? echo $i; ?>');" src="../images/exec.png"></td>
  62              <td><input onChange="VisibleTab(this,'<? echo $_SESSION["TABLE_NAME"][$i]; ?>')" title="<? echo $LangHide ?>" id="check_vis_<? echo $_SESSION["TABLE_NAME"][$i]; ?>" style="margin:0px;" type="checkbox" value="<? echo $_SESSION["TABLE_NAME"][$i]; ?>"  <? if( isset($tab_pos[$_SESSION["TABLE_NAME"][$i]]) ) echo $tab_pos[$_SESSION["TABLE_NAME"][$i]]["H"]?"checked":""; else echo "checked"; ?>></td>
  63              <td class="Tabs" onMouseOver="this.className='Tabs2'" onMouseOut="this.className='Tabs'" onClick="Select_tab('<? echo $_SESSION["TABLE_NAME"][$i]; ?>');"><? echo $_SESSION["TABLE_NAME"][$i]; ?></td>
  64            </tr>
  65            <? 
  66          }
  67          ?>
  68          </table>
  69        </div>
  70        <div align="center"><? echo $LangQuantityOfTables ?>: <? echo sizeof( $_SESSION['TABLE_NAME'] ) ?></div>    </td>
  71      <td width="100%" height="22" nowrap="nowrap" class="top_panel" >
  72        <img title="Connect..." src="../images/connect.png" alt="key" class="L_butt" onClick="window.location.href='../index.php'" >
  73        <img title="Select Tables" src="../images/gohome.png" alt="key" class="L_butt" onClick="window.location.href='set_tables.php'" >
  74        <img title="<? echo $LangSavePosition ?>" class="L_butt" onClick="Save()" src="../images/save.png" alt="key" >
  75        <img title="<? echo $LangCreateRelation ?>" class="L_butt" src="../images/relation.png" alt="key"  onClick="Start_relation()">
  76        <img title="<? echo $LangCreateTable ?>" class="L_butt" src="../images/table.png" alt="key" onClick="Start_table_new()" >
  77        <img title="Reload" src="../images/reload.png" alt="key" class="L_butt" onClick="location.reload();" >
  78        <img title="Help" src="../images/01.png" alt="key" class="L_butt" onClick="Help()" >
  79        <span style="padding-left:50px"></span>
  80        <img title="Small/Big all" alt="v" class="L_butt" src="../images/downarrow1.png" onClick="Small_tab_all(this)" >
  81        <img title="-Small/-Big" class="L_butt" src="../images/bottom.png" alt="key" onClick="Small_tab_invert(this)" > 
  82        <span style="padding-left:50px"></span>
  83        <img title="<? echo $LangHighSizeX ?>" class="L_butt" src="../images/plus.png" alt="key" onClick="Osn_tab_pos('X',100)" >
  84        <b>x</b>
  85        <img title="<? echo $LangLowerSizeX ?>" class="L_butt" src="../images/minus.png" alt="key" onClick="Osn_tab_pos('X',-100)" >
  86        <span style="padding-left:10px"></span>
  87        <img title="<? echo $LangHighSizeY ?>" class="L_butt" src="../images/plus.png" alt="key" onClick="Osn_tab_pos('Y',100)" >
  88        <strong>y</strong>
  89        <img title="<? echo $LangLowerSizeY ?>" class="L_butt" src="../images/minus.png" alt="key" onClick="Osn_tab_pos('Y',-100)" >    </td>
  90    </tr>
  91    <tr>
  92      <td valign="top" id="osn_tab_canv">
  93      <CANVAS id="canvas" onClick="Canvas_click(this)">Your browser not supported &lt;canvas&gt;</CANVAS>    </td>
  94    </tr>
  95    
  96    <tr>
  97      <td style="border-bottom:#AAAAAA solid 1px;" height="11" class="left_panel">&nbsp;</td>
  98      <td style="border-bottom:#AAAAAA solid 1px; border-right:#AAAAAA solid 1px;" ><div id="pos" style="font-size:12px">&nbsp;</div></td>
  99    </tr>
 100  </table>
 101  <input name="t_x[PHP_DB_DESIGNER_OSN_TAB_POS]" type="hidden" id="t_x[PHP_DB_DESIGNER_OSN_TAB_POS]">
 102  <input name="t_y[PHP_DB_DESIGNER_OSN_TAB_POS]" type="hidden" id="t_y[PHP_DB_DESIGNER_OSN_TAB_POS]">
 103  <input name="t_v[PHP_DB_DESIGNER_OSN_TAB_POS]" type="hidden" id="t_v[PHP_DB_DESIGNER_OSN_TAB_POS]">
 104  <input name="t_h[PHP_DB_DESIGNER_OSN_TAB_POS]" type="hidden" id="t_h[PHP_DB_DESIGNER_OSN_TAB_POS]">
 105  <?
 106  for ( $i=0; $i < sizeof( $_SESSION["TABLE_NAME"] ); $i++ ) 
 107  {
 108    $t_n = $_SESSION["TABLE_NAME"][$i];
 109  ?>
 110  <input name="t_x[<? echo $t_n ?>]" type="hidden" id="t_x[<? echo $t_n ?>]">
 111  <input name="t_y[<? echo $t_n ?>]" type="hidden" id="t_y[<? echo $t_n ?>]">
 112  <input name="t_v[<? echo $t_n ?>]" type="hidden" id="t_v[<? echo $t_n ?>]">
 113  <input name="t_h[<? echo $t_n ?>]" type="hidden" id="t_h[<? echo $t_n ?>]">
 114  
 115  <table id="<? echo $t_n ?>" cellpadding="0" cellspacing="0" class="tab" 
 116         style="position:absolute; 
 117                left: <? if( isset($tab_pos[$t_n]) ) echo $tab_pos[$t_n]["X"]; else echo rand(180,800); ?>; 
 118                top:  <? if( isset($tab_pos[$t_n]) ) echo $tab_pos[$t_n]["Y"]; else echo rand(30,500); ?>;
 119                visibility:  <? if( isset($tab_pos[$t_n]) ) echo $tab_pos[$t_n]["H"]?"visible":"hidden"; ?>
 120               ">
 121    <tr>
 122      <td class="small_tab" onMouseOver="this.className='small_tab2';" onMouseOut="this.className='small_tab';" id="_|_hide_tbody_<? echo $t_n ?>" onClick="Small_tab('<? echo $t_n ?>',1)"><? if( isset($tab_pos[$t_n]) ) echo $tab_pos[$t_n]["V"]?"v":">";else echo "v"; ?></td>
 123      <td class="small_tab_pref" onMouseOver="this.className='small_tab_pref2';" onMouseOut="this.className='small_tab_pref';" onClick="Start_tab_upd('<? echo $i; ?>');"><img src="../images/exec_small.png"></td>
 124      <td nowrap id="_|_zag_<? echo $t_n ?>" class="tab_zag" onMouseDown="cur_click=document.getElementById('<? echo $t_n ?>');"
 125      onMouseOver="this.className = 'tab_zag_2'" onMouseOut="this.className = 'tab_zag'"
 126      ><? echo "<span class='owner'>".strtolower($_SESSION["OWNER"][$i]).".</span>".$_SESSION["TABLE_NAME_SMALL"][$i]; ?></td>
 127      
 128    </tr>
 129    <tbody id="_|_tbody_<? echo $t_n ?>" 
 130           style="display:<? if( isset($tab_pos[$t_n]) ) echo $tab_pos[$t_n]["V"]?"":"none"; ?>;">
 131      <?
 132    for ( $j=0; $j < sizeof( $tab_column[$t_n]["COLUMN_ID"] ); $j++ ) 
 133    {
 134    ?>
 135      <tr onMouseOver="this.id = 'tab_field_2'" onMouseOut="this.id = 'tab_field'" onMouseDown="Click_field(<? echo $i.",'".$tab_column[$t_n]["COLUMN_NAME"][$j]."'" ?>)">
 136          <td width="10px" colspan="3" id="<? echo $t_n.".".$tab_column[$t_n]["COLUMN_NAME"][$j] ?>"
 137          ><div style="white-space:nowrap">
 138         <? if(isset($tab_pk[$t_n.".".$tab_column[$t_n]["COLUMN_NAME"][$j]])){?><img src="../styles/<? echo $_SESSION['STYLE']?>/images/FieldKey_small.png" alt="*"><? } else {?><img src="../styles/<? echo $_SESSION['STYLE']?>/images/Field_small.png" alt="*"><? } ?> 
 139         <? echo $tab_column[$t_n]["COLUMN_NAME"][$j]." : ".$tab_column[$t_n]["TYPE"][$j]."(".$tab_column[$t_n]["LENGTH"][$j].")" ?>
 140          </div>
 141         </td>
 142      </tr>
 143      <?
 144    }
 145    ?>
 146    </tbody>
 147  </table>
 148  <?
 149  }
 150  ?>
 151  </form>
 152  <div id="hint"></div>
 153  </body>
 154  </html>


[ Powered by PHPXref - Served by Debian GNU/Linux ]