system: Linux mars.sprixweb.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
<AOA:output>if $message!="" </AOA:output>
<div id="dialog" title="Success">
<p><AOA:output>$message</AOA:output></p>
</div>
<AOA:output>/if</AOA:output>
<AOA:output>if $error_message ne "" </AOA:output>
<div id="dialog" title="Error in Validation">
<AOA:output>$error_message</AOA:output>
</div>
<AOA:output>/if</AOA:output>
<AOA:output>if count($errmsg) gt 0</AOA:output>
<div id="dialog" title="Error in Validation">
<p>
<AOA:output>foreach name=err item=err from=$errmsg</AOA:output>
<AOA:output>$err</AOA:output><br>
<AOA:output>/foreach</AOA:output>
</p>
</div>
<AOA:output>/if</AOA:output>
<div class="grid_9">
<div class="box round first">
<h2>Member Edit/Update <input type="button" id="button1" value="" style="background-color: transparent;float: right; padding: 1px;border-radius: 10px;-moz-border-radius: 10px;-webkit-border-radius: 10px;" onclick="enableD()" /></h2>
<div class="block ">
<form class="form-horizontal" role="form" method="post" enctype="multipart/form-data" action="?do=donor&action=update&usrid=<AOA:output>$usr</AOA:output>" >
<input type="hidden" name="user_id" id="user_id" value="<AOA:output>$usr</AOA:output>"/>
<table class="form">
<tr>
<td class="col1">
<label>I Card Number </label>
</td>
<td class="col02">
<input type="text" name="txtusername" style="width:200px;" placeholder="Enter Members I Card Number" value="<AOA:output>$txtusername</AOA:output>" >
</td>
</tr>
<tr>
<td class="col1">
<label>Sponsor I Card Number </label>
</td>
<td class="col02">
<input type="text" name="txtsponser" style="width:200px;" placeholder="Enter Members Sponsor ID" value="<AOA:output>$txtsponser</AOA:output>" >
</td>
</tr>
<tr>
<td class="col1">
<label>Full Name </label>
</td>
<td class="col02">
<input type="text" name="txtname" style="width:200px;" placeholder="Enter Members Name" value="<AOA:output>$txtname</AOA:output>">
<select class="form-control" name="txtof">
<option value="S/O" <AOA:output>if $txtof eq 'S/O'</AOA:output> selected <AOA:output>/if</AOA:output> >S/O</option>
<option value="D/O" <AOA:output>if $txtof eq 'D/O'</AOA:output> selected <AOA:output>/if</AOA:output> >D/O</option>
<option value="W/O" <AOA:output>if $txtof eq 'W/O'</AOA:output> selected <AOA:output>/if</AOA:output> >W/O</option>
</select>
<input type="text" name="txtfname" style="width:200px;" placeholder="Enter Father/Husband Name" value="<AOA:output>$txtfname</AOA:output>">
</td>
</tr>
<tr>
<td class="col1">
<label>Gender</label>
</td>
<td class="col02">
<input type="radio" name="txtsex" class="form-control" value="Male" <AOA:output>if $txtsex eq 'Male'</AOA:output> checked <AOA:output>/if</AOA:output>> Male
<input type="radio" name="txtsex" class="form-control" value="Female" <AOA:output>if $txtsex eq 'Female'</AOA:output> checked <AOA:output>/if</AOA:output>> Female
</td>
</tr>
<tr>
<td class="col1">
<label>Age </label>
</td>
<td class="col02">
<input type="text" name="txtage" class="form-control" placeholder="Enter Age" value="<AOA:output>$txtage</AOA:output>">
</td>
</tr>
<tr>
<td class="col1">
<label>Communication Address</label>
</td>
<td class="col02">
<textarea class="large" name="txtaddress" cols="34" rows="5"><AOA:output>$txtaddress</AOA:output></textarea>
</td>
</tr>
<tr>
<td class="col1">
<label>City</label>
</td>
<td class="col02">
<input type="text" name="txtcity" style="width:200px;" placeholder="Enter City Name" value="<AOA:output>$txtcity</AOA:output>">
</td>
</tr>
<tr>
<td class="col1">
<label>Contact Number</label>
</td>
<td class="col02">
<input type="text" name="txtphone" style="width:200px;" placeholder="Enter Contact Number" value="<AOA:output>$txtphone</AOA:output>">
</td>
</tr>
<tr>
<td class="col1">
<label>Blood Group</label>
</td>
<td class="col02">
<input type="text" name="txtblood" style="width:200px;" placeholder="Enter Blood Group" value="<AOA:output>$txtblood</AOA:output>">
</td>
</tr>
<tr>
<td class="col1">
<label>Status</label>
</td>
<td class="col02">
<input type="radio" name="txtstatus" class="form-control" value="Enable" <AOA:output>if $txtstatus eq 'Enable'</AOA:output> checked <AOA:output>/if</AOA:output>> Enable
<input type="radio" name="txtstatus" class="form-control" value="Disable" <AOA:output>if $txtstatus eq 'Disable'</AOA:output> checked <AOA:output>/if</AOA:output>> Disable
</td>
</tr>
<tr>
<td class="col1">
<label>Image</label>
</td>
<td class="col02">
<input type="file" name="image" size="45" ></br><p><img width="100" height="100" src="../<AOA:output>$image</AOA:output>" ></br>
<AOA:output>if $image2 eq ''</AOA:output>
<AOA:output>else</AOA:output>
<button type="submit" name="delPIC" class="btn btn-small btn-grey">Delete Picture</button>
<AOA:output>/if</AOA:output>
</p>
</td>
</tr>
<tr>
<td class="" colspan="5">
<center>
<button type="submit" name="update" class="btn btn-green">Save/Update</button>
<button type="submit" id="btn" name="del" class="btn btn-red">Delete</button>
<button type="button" onclick="location.href='?do=donor'" class="btn btn-blue">Back</button>
</center>
</td>
</tr>
<script>function enableD() {document.getElementById("btn").disabled = false;}document.getElementById("btn").disabled = true;</script>
</table>
</form>
</div>
</div>
</div>
<div class="clear">
</div>