コード例 #1
0
ファイル: clusters_edit.php プロジェクト: hackdracko/belcorp
function Muestra()
{
    $cluster = new Cluster();
    if (isset($_GET['c_id'])) {
        $cluster_id = $_GET['c_id'];
        $cluster->Load_Cluster($cluster_id);
    } else {
        header("Location: index.php");
    }
    $I = new Interfaz("Usuarios:: Editar Usuario", true);
    include "../../lib/php/messageResources.php";
    $INDEXIDIOMA = $_SESSION["idiomausuario"];
    ?>
<style type="text/css">
<!--
.Estilo1 {color: #FF0000}
-->
</style>
<script src="../../lib/js/jquery/jquery-1.3.2.js" type="text/javascript"></script>
<script src="../../lib/js/validateForm.js" type="text/javascript"></script>
<script  src="js/validaform.js" type="text/javascript"></script>

<br><br>
	<form name="form1" method="post" action="">
		<table width="80%" align="center" cellpadding="4" cellspacing="4" border="0" bgcolor="#f4f4f4" style="padding-top: 20px;">
			<tr>
				<td align="right">&nbsp;</td>
				<td><strong><?php 
    echo $LABELINDEX[$INDEXIDIOMA][328] . " " . $LABELINDEX[$INDEXIDIOMA][78];
    ?>
</strong></td>
		    </tr>
			<tr>
				<td align="right">&nbsp;</td>
				<td>
					<input type="hidden" name="c_id" id="c_id" value="<?php 
    echo $cluster_id;
    ?>
" readonly="readonly" style="border-color:#FFFFFF" />
				</td>
		    </tr>
			<tr>
				<td align="right" width="30%"><?php 
    echo $LABELINDEX[$INDEXIDIOMA][327];
    ?>
<span class="Estilo1">*</span>: 	</td>
                <td> <input type="text" name="nombre" id="nombre" size="70" value="<?php 
    echo $cluster->Get_dato("c_nombre");
    ?>
"/>
				</td>
			</tr>
			<tr>
				<td align="right" width="30%"><?php 
    echo $LABELINDEX[$INDEXIDIOMA][28];
    ?>
: 			
				</td>
				<td> 
					<?php 
    if ($cluster->Get_dato("c_estatus") == "0") {
        ?>
					<input type="checkbox" name="estatus" id="estatus"/>
					<?php 
    } else {
        ?>
					<input type="checkbox" name="estatus" id="estatus" checked />
					<?php 
    }
    ?>
				</td>
			</tr>
			<tr>
				<td colspan="2">&nbsp;</td></tr>
			<tr>
				<td colspan="2" align="center">
					<input type="submit" value="<?php 
    echo $LABELINDEX[$INDEXIDIOMA][345];
    ?>
" name="Actualizar" onclick="return validate(); ">
				 	<input type="submit" value="<?php 
    echo $LABELINDEX[$INDEXIDIOMA][219];
    ?>
" name="Cancelar">				 	
				</td>
			</tr>
			</table>
</form>
<?php 
    $I->Footer();
}