Ejemplo n.º 1
0
<?php

require_once "../../../lib/staple_length.class.php";
$objSta_LenListAll = new Sta_Len();
$Sta_LenListAll = $objSta_LenListAll->retriveSta_LenInfo();
$rowSta_LenListAll = count($Sta_LenListAll);
?>


<table width="100%" border="0">
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td align="right"><a class="thickbox" href="includes/contents/create_staple_length.php?height=200&width=500" title="Staple Lenght" >Back</a></td>
  </tr>
  <tr>
    <td width="443"><b>Staple Length Name</b></td>
    <td width="161">&nbsp;</td>
    <td width="210">&nbsp;</td>
  </tr>
<?php 
for ($i = 0; $i < $rowSta_LenListAll; $i++) {
    if ($i % 2 == 0) {
        $bgc = "#F7F7F7";
    } else {
        $bgc = "#F1F1F1";
    }
    ?>
  <tr id ="stk_<?php 
    echo $Sta_LenListAll["{$i}"]["sta_len_id"];
    ?>
<?php

require_once "../../lib/staple_length.class.php";
$objSta_LenInfo = new Sta_Len();
extract($_POST);
$Sta_Len_name = $_POST['sta_len_name'];
$Sta_Lent_id = $_POST['sta_len_id'];
$objSta_LenInfo->updateSta_len($Sta_Lent_id, $Sta_Len_name);
echo "<b>Data Save Successsfull<b>";
?>
	
Ejemplo n.º 3
0
<?php

require_once "../../lib/staple_length.class.php";
$objSta_LenInfo = new Sta_Len();
extract($_POST);
//get a new id
/////////////////////////////
$sta_len_name = $_POST['sta_len_name'];
$getData = "'','{$sta_len_name}'";
$objSta_LenInfo->CreateSta_Len($getData);
echo "<b>Data Save Successsfull</b>";
include '../contents/create_staple_length.php';
Ejemplo n.º 4
0
<?php

require_once "../../../lib/staple_length.class.php";
$objSta_LenListAll = new Sta_Len();
if (isset($_POST['delete'])) {
    echo $id = (int) $_POST['id'];
    if ($objSta_LenListAll->deleteStaple_len($id) > 0) {
        echo "U have Deleted Succesfully";
    } else {
        echo "sorry record does not exists";
    }
}
Ejemplo n.º 5
0
<?php

require_once "../../../lib/staple_length.class.php";
$sta_len_id = $_GET['sta_len_id'];
$objSta_LenInfo = new Sta_Len();
$Sta_LenById = $objSta_LenInfo->retriveSta_LenById($sta_len_id);
$Sta_Len_name = $Sta_LenById[0]['sta_len_name'];
?>

<div id="note"> </div>				
<form id="Sta_LenForm" name="Sta_LenForm" method="post"   action="includes/model/staple_length_actions_update.php" >
     <?php 
require_once "../partials/_form_staple_length.php";
?>
        <div id="submit_set">
             <table width="100%" border="0" cellpadding="0" cellspacing="0">
               <tr>
                 <td align="right">&nbsp;</td>
                 <td>&nbsp;</td>
                 <td align="left">&nbsp;</td>
               </tr>
               <tr>
                 <td width="40%" align="right"><input type="hidden" name="sta_len_id" id="sta_len_id" value="<?php 
echo $sta_len_id;
?>
"/></td>
                 <td width="11%"><input class="button" name="Submit" type="submit" value="Update" id="Submit"/></td>
                 <td width="49%" align="left">&nbsp;</td>
               </tr>
            </table>
	      </div>