All pastes #816311 Raw Edit

Something

public text v1 · immutable
·published 2007-12-14 19:18 UTC
rendered paste body
Main File wo.php

<?php
   define('TITLE1', 'My Ops System Work Order Page');
   define('TITLE2', 'My Ops System');
   require('./functions/scr_temp.php');
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="style.css">
<title><?php echo TITLE1; ?></title>
</head>
<?php
   echo $disp_top;
   echo TITLE2;
   echo $disp_mid;
   include('wo-cm.php');
   echo $disp_bot;
?>

Screen Setup File scr_temp.php

<?php
   require('men_l.php');
   require('men_t.php');
   require('men_b.php');
   require('men_r.php');
   $disp_top ='<BODY bgcolor=#ffffff><TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 '.
              'WIDTH=85% height=500 align=center bgcolor=#333388><! Row ONE ><TR>'.
              '<! Column One ><td rowspan=2 width=150>&nbsp;</td><! Column Two >'.
              '<td height=50 align=center valign=middle><font face=Arial size=6 '.
              'color=#ffff55><b>';
   $disp_mid ='</b></font></td><! Column Three ><TD rowspan=4 width=20></tr><! '.
              'Row TWO ><tr><td height=35>'.$t_men.'</td></tr><! Row '.
              'THREE ><tr height=200><td valign=top align=center rowspan=2 width='.
              '150>'.$l_men.'</td><td bgcolor="#ffffaa" align=center>';
   $disp_bot ='</td><td valign=top align=center rowspan=2 width=5>'.
              $r_men.'</td></tr><! Row FOUR ><tr height=10><td align=center>'.
              $b_men.'</td></tr></table></body></html>';
?>

Left Menu File men_l.php (Current is static, but have DB driven version)

<?php
   $l_men = "<table width=150 align=center border=0>
               <tr>
               <td height=25 align=center><a href='./index.php'>Start</a></td>
               </tr>

               <tr>
               <td height=25 align=center><a href='./est.php'>Estimate</a></td>
               </tr>

               <tr>
               <td height=25 align=center><a href='./co.php'>COrder</a></td>
               </tr>

               <tr>
               <td height=25 align=center><a href='./ro.php'>ROrder</a></td>
               </tr>

               <tr>
               <td height=25 align=center><a href='./wo.php'>WOrder</a></td>
               </tr>

               <tr>
               <td height=25 align=center><a href='./ds.php'>Dispatch</a></td>
               </tr>

               <tr>
               <td height=25 align=center><a href='./inv.php'>Invoice</a></td>
               </tr>

               <tr>
               <td height=25 align=center><a href='./bill.php'>Billing</a></td>
               </tr>

               <tr>
               <td height=25 align=center><a href='./tool.php'>Tools</a></td>
               </tr>

               <tr>
               <td height=25 align=center><a href='./set.php'>Setup</a></td>
               </tr>

               <tr>
               <td align=center><?php include(GoogleSearch.html); ?></td>
               </tr>
            </table>";
?>

Left Top File men_t.php (Current is static, but have DB driven version)

<?php
   $t_men = "<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=0 WIDTH=500 align=center>
              <TR VALIGN=top height=25>
              <TD align=center width=20%>
                  <a href='./index.php'>Start</a></td>
              </td>

              <td align=center><font size=2 color=#ffffff>&nbsp;|&nbsp;</font></td>

              <TD align=center width=15%>
                  <a href='./est.php'>Estimate</a>
              </td>

              <td align=center><font size=2 color=#ffffff>&nbsp;|&nbsp;</font></td>

              <TD align=center width=15%>
                  <a href='./co.php'>COrder</a>
              </td>

              <td align=center><font size=2 color=#ffffff>&nbsp;|&nbsp;</font></td>

              <TD align=center width=15%>
                  <a href='./ro.php'>ROrder</a>
              </td>

              <td align=center><font size=2 color=#ffffff>&nbsp;|&nbsp;</font></td>

              <TD align=center width=15%>
                  <a href='./wo.php'>WOrder</a>
              </td>

              <td align=center><font size=2 color=#ffffff>&nbsp;|&nbsp;</font></td>

              <TD align=center width=15%>
                  <a href='./ds.php'>Dispatch</a>
              </td>


              <td align=center><font size=2 color=#ffffff>&nbsp;|&nbsp;</font></td>

              <TD align=center width=15%>
                  <a href='./inv.php'>Invoice</a>
              </td>

              <td align=center><font size=2 color=#ffffff>&nbsp;|&nbsp;</font></td>

              <TD align=center width=15%>
                  <a class='cm' href='./bill.php'>Billing</a>
              </td>

              <td align=center><font size=2 color=#ffffff>&nbsp;|&nbsp;</font></td>

              <TD align=center width=15%>
                  <a class='cm' href='./tool.php'>Tools</a>
              </td>

              <td align=center><font size=2 color=#ffffff>&nbsp;|&nbsp;</font></td>

              <TD align=center width=15%>
                  <a class='cm' href='./set.php'>Setup</a>
              </td>
              </tr>
           </table>";
?>

Left Right File men_r.php (Current is blank)

<?php
?>

Left Bottom File men_b.php

<?php
   $b_men = "<b><FONT color=#ffffff size=3>Designed and
            <font color=#FFFFFF size=3 face=Verdana>©</font>
            by <A HREF='http://www.davisoftaec.com' TARGET=_blank>
            <b><FONT color=#ffffff size=3>Davisoft-Aec</font></b></a>
            2005. All rights reserved</FONT></b>";
?>

Content File wo-cm.php  (Call to processing etc come from here)

<?php
   require('./functions/db_connect.php');
   require('./functions/cmp-dis.php');
   require('wo-det.php');
//   require('./functions/functions.php');
   define('TITLE1', 'MyOps System - Work Order');
   define('TITLE2', 'Company Selection Screen');
   define('TITLE3', 'Detail Entry Screen');
   $dis_act = addslashes($_SERVER['PHP_SELF']);
   $dis_hdr = '<html><head><title>'.TITLE1.'</title></head>';
   $dis_bdf = '<BODY BGCOLOR="#ffFFdd"><FORM name="ops" METHOD="POST" '.
              'ACTION="'.$dis_act.'"><TABLE BORDER=2 CELLPADDING=5 WIDTH=100% '.
              'height=400 align=center BGCOLOR="#F0F8FF"><TR><TD>'.
              '<TABLE BORDER=0 CELLPADDING=5 WIDTH=95% align=center '.
              'BGCOLOR="#F0F8FF" class=bd><TR><TD colspan=11 ALIGN=center '.
              'VALIGN=bottom><H1>'.TITLE1.'</H1><b>';
   $dis_ebd = '</b></td></tr>';
   $dis_ftr = '<tr><td align=center colspan=11>'.
              '<INPUT TYPE="submit" NAME="nextpg" VALUE="Submit">'.
              '</td></tr></TABLE><input type="hidden" name="process" '.
              'value=""></td></TR></TABLE></FORM></BODY></HTML>';
//phpinfo();
   if (!isset($HTTP_POST_VARS['nextpg'])) {
      $dis_var = $dis_hdr . $dis_bdf . TITLE2 . $dis_ebd . $frm_disp . $dis_ftr;
   } else {
      $dis_var = $dis_hdr . $dis_bdf . TITLE3 . $dis_ebd . $det_disp;
   }
   echo $dis_var;
?>