Código PHP:
<script language="javascript">
var f = new Date();
function fAgrega(value)
{
document.getElementById("fp").innerHTML = f.getDate() + "/" + f.getMonth() + 1 + "/" + f.getFullYear();
alert(value);
}
</script>
Código PHP:
<div style="padding-left: 10px;">
<label class="colorG"></label>
<fieldset class="campofieldsetM">
<legend>Administrador de Publicación de Cargos</legend>
<form action="" method="post" enctype="multipart/form-data" target="_self" id="theForm" name="theForm">
<label >Lista de Vacantes</label>
<table width="1008" cellpadding="0" border="1" bordercolordark="#CCCCCC" cellspacing="0" style="text-align:center">
<thead bgcolor="#999999">
<tr>
<th width="54">ITEM</th>
<th width="285">Gerencia</th>
<th width="227">Vacante</th>
<th width="81">Status</th>
<th width="159">Fecha de Publicación</th>
<th width="124">Fecha de Cierre</th>
<th width="76">Gestionar</th>
</tr>
</thead>
<tbody>
<tr>
<td width="54"><span title="ITEM"><label name="item" id="item" value="1">1</label></span></td>
<td width="285"><span title="Gerencia" style="font-size:13px">GERENCIA DE ADMINISTRACIÓN</span></td>
<td width="227"><span title="Cargo" style="font-size:13px">ANALISTA DE FACTURACIÓN</span></td>
<td width="81"><span title="Status"><label name="status" id="status" value="0"></label></span></td>
<td width="159"><span title="fp" id="fp"></span></td>
<td width="124"><span title="fc" id="fc"></span></td>
<td width="76" align="center"><span title="Gestionar"><input name="gestionar" id="gestionar" type="radio" value="1" onChange="fAgrega(this.value);" onClick="nv.disabled = false; pv.disabled = false"/></span></td>
</tr>
</tbody>
<tbody>
<tr>
<td width="54"><span title="ITEM"><label name="item" id="item" value="2">2</label></span></td>
<td width="285"><span title="Gerencia" style="font-size:13px">GERENCIA DE ADMINISTRACIÓN</span></td>
<td width="227"><span title="Cargo" style="font-size:13px">EJECUTIVA DE APS</span></td>
<td width="81"><span title="Status"><label name="status" id="status" value="0"></label></span></td>
<td width="159"><span title="fp" id="fp"></span></td>
<td width="124"><span title="fc" id="fc"></span></td>
<td width="76" align="center"><span title="Gestionar"><input name="gestionar" id="gestionar" type="radio" value="2" onChange="fAgrega(this.value);" onClick="nv.disabled = false; pv.disabled = false"/></span></td>
</tr>
</tbody>
</table><br>
</form>
</fieldset>
</div>