Location: PHPKode > projects > T-77.com Operational Management System > omis/doc_types.php
<?php require_once('Connections/t77_connect.php'); ?>
<?php
mysql_select_db($database_t77_connect, $t77_connect);
$query_doctypes = "SELECT * FROM t77_bill_types ORDER BY t77_bill_types.bill_type";
$doctypes = mysql_query($query_doctypes, $t77_connect) or die(mysql_error());
$row_doctypes = mysql_fetch_assoc($doctypes);
$totalRows_doctypes = mysql_num_rows($doctypes);
?>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="styles.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function GP_popupConfirmMsg(msg) { //v1.0
  document.MM_returnValue = confirm(msg);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->
</script>
</head>

<?
if(isset($_GET['reload'])) {
if($_GET['reload'] == 'yes') {
	$command = "MM_goToURL('parent.frames[\'menu\']','menu/menu.htm');return document.MM_returnValue";
} } ?>
	
<body onLoad="<? echo $command; ?>">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" class="lineleft">
  <tr> 
    <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="31" align="left" valign="top"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0">
              <tr> 
                <td width="20"><img src="images/tabletopstart.gif" width="20" height="31" /></td>
                <td><table width="100%" height="30" border="0" cellpadding="5" cellspacing="0">
                    <tr> 
                      <td><p><strong>Document types</strong></p></td>
                      <td><table border="0" align="right" cellpadding="0" cellspacing="0">
                          <tr> 
                            <td><a href="javascript:;" onClick="MM_openBrWindow('docType_add.php?ref=<? echo $_SERVER['PHP_SELF']; ?>&amp;quer=<? echo $_SERVER['QUERY_STRING']; ?>','docTypeAdd','scrollbars=yes,width=400,height=150')"><img src="images/toolbar/add_small.gif" alt="nieuw item op deze order zetten" width="20" height="20" border="0" /></a></td>
                          </tr>
                        </table></td>
                    </tr>
                  </table></td>
              </tr>
            </table></td>
        </tr>
        <tr> 
          <td align="left" valign="top"><table width="100%" border="0" cellpadding="20" cellspacing="0">
              <tr> 
                <td><table width="100%" border="0" cellpadding="3" cellspacing="0" class="tableBorder">
                    <tr>
                      <td class="tableTop"><h1>Document types</h1></td>
                      <td class="tableTop">&nbsp;</td>
                    </tr>
                    <?php
				$i = 0;
				do { 
				$i++;
				if(is_int($i/2)) {
					$bgcolor = "#ffffff";
				} else {
					$bgcolor = "#eeeeee";
				}
					?>
                    <tr bgcolor="<? echo $bgcolor; ?>"> 
                      <td> 
                        <p><?php echo $row_doctypes['type_description']; ?></p></td>
                      <td align="right"> 
                        <table width="39" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td><a href="javascript:;" onClick="MM_openBrWindow('docType_edit.php?ref=<? echo $_SERVER['PHP_SELF']; ?>&amp;quer=<? echo $_SERVER['QUERY_STRING']; ?>&amp;docType=<?php echo $row_doctypes['bill_type']; ?>','docedit','scrollbars=yes,width=400,height=150')"><img src="images/toolbar/edit_small_white.gif" alt="nieuw item op deze order zetten" width="17" height="17" border="0" /></a></td>
                            <td width="5">&nbsp;</td>
                            <td width="17"><a href="delete.php?docType=<?php echo $row_doctypes['bill_type']; ?>&delete=docType" onClick="GP_popupConfirmMsg('Are you sure you want to delete <?php echo $row_doctypes['type_description']; ?>? This cannot be undone.');return document.MM_returnValue"><img src="images/toolbar/delete_small_white.gif" width="17" height="17" border="0" /></a></td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <?php } while ($row_doctypes = mysql_fetch_assoc($doctypes)); ?>
                  </table></td>
              </tr>
            </table>
          
          </td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>
<?php
mysql_free_result($doctypes);
?>

Return current item: T-77.com Operational Management System