<?
$this->load->view('cpanel/header');
?>

		<script src="<?=base_url()?>js/jquery.validationEngine-en.js" type="text/javascript"></script>
		<script src="<?=base_url()?>js/jquery.validationEngine.js" type="text/javascript"></script>



		<script>
		$(document).ready(function() {


			$("#formID").validationEngine()


			//$.validationEngine.loadValidation("#date")
			//alert($("#formID").validationEngine({returnIsValid:true}))
			//$.validationEngine.buildPrompt("#date","This is an example","error")	 		 // Exterior prompt build example
			//$.validationEngine.closePrompt(".formError",true) 							// CLOSE ALL OPEN PROMPTS
		});

	</script>
<div align="center">
<form id="formID"  method="post" enctype="multipart/form-data" action="<?=site_url('admin/cpanel/profileSave')?>">
<input type='hidden' name='logoFile' id='logoFile' value='<?= $logo_images; ?>' >
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td colspan="2" valign="top" style="padding-top:20px;">
    <?=$titleErrorMessage?>
  	</td>
  </tr>
  <tr>
    <td colspan="2" valign="top" style="padding-top:0px;">
  	      <img src="<?=base_url()?>images/s.gif" width="600" height="1" border="0" alt="" />
	      <div id="module_info">&nbsp;&raquo;&nbsp; Billing Setup Information</div>
  	</td>
  </tr>

  <tr>
    <td width="40%" align="center" valign="top" style="padding-top:10px;padding-right:5px;padding-left:0px;">

	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tableBorderFrom">
		<tr>
			<td colspan="2" class="mainTableTitle">&nbsp;&raquo;&nbsp;Profile Setup</td>
		</tr>
		<tr>
			<td class='formLabelRigit' width='35%' style='padding-top:10px;'> Organization Name :  </td>
			<td class='formLabelLeft' width='65%' style='padding-top:10px;'><input type='text' class='validate[required,length[4,200]] formInput' name='com_name' id='com_name' maxlength="200" style='width:200px;' value='<?= $com_name; ?>' />
			<span style="padding:5px;font-size:11px;color:#FF0000">	*	</span>
			</td>
		</tr>

		<tr>
			<td class='formLabelRigit'>  VAT Reg No :  </td>
			<td class='formLabelLeft'><input type='text' class='formInput' name='com_vat_reg' id='com_vat_reg' maxlength="200" style='width:200px;' value='<?= $com_vat_reg; ?>' />
			<span style="padding:5px;font-size:11px;color:#FF0000">	*	</span>
			</td>
		</tr>

		<tr>
			<td class='formLabelRigit'>  Phone No :  </td>
			<td class='formLabelLeft'><input type='text' class='formInput' name='com_phone' id='com_phone' maxlength="200" style='width:200px;' value='<?= $com_phone; ?>' />
			<span style="padding:5px;font-size:11px;color:#FF0000">	*	</span>
			</td>
		</tr>

		<tr>
			<td class='formLabelRigit'>  Fax No :  </td>
			<td class='formLabelLeft'><input type='text' class='formInput' name='com_fax' id='com_fax' maxlength="200" style='width:200px;' value='<?= $com_fax; ?>' />
			<span style="padding:5px;font-size:11px;color:#FF0000">	*	</span>
			</td>
		</tr>

		<tr>
			<td class='formLabelRigit' valign="top"> Address  :  </td>
			<td class='formLabelLeft'>
			 <textarea class='formInputTextArea' name="com_address" id = "com_address"><?=$com_address?></textarea>
			</td>
		</tr>


		<tr>
		    <td>&nbsp;</td>
		    <td>&nbsp;</td>
  		</tr>
	</table>

	</td>

    <td width="40%" align="center" valign="top" style="padding-top:10px;padding-right:5px;padding-left:0px;">

    	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tableBorderFrom">
			<tr>
				<td colspan="2" class="mainTableTitle">&nbsp;&raquo;&nbsp;FTP Information</td>
			</tr>
			<tr>
				<td class='formLabelRigit' width='35%' style='padding-top:10px;'> FTP Host :  </td>
				<td class='formLabelLeft' width='65%' style='padding-top:10px;'><input type='text' class='formInput' name='ftp_ip' id='ftp_ip' maxlength="200" style='width:200px;' value='<?= $ftp_ip; ?>' />
				<span style="padding:5px;font-size:11px;color:#FF0000">	*	</span>
				</td>
			</tr>

			<tr>
				<td class='formLabelRigit'>  FTP User Name :  </td>
				<td class='formLabelLeft'><input type='text' class='formInput' name='ftp_user' id='ftp_user' maxlength="200" style='width:200px;' value='<?= $ftp_user; ?>' />
				<span style="padding:5px;font-size:11px;color:#FF0000">	*	</span>
				</td>
			</tr>

			<tr>
				<td class='formLabelRigit'> FTP Password :  </td>
				<td class='formLabelLeft'><input type='text' class='formInput' name='ftp_pass' id='ftp_pass' maxlength="200" style='width:200px;' value='<?= $ftp_pass; ?>' />
				<span style="padding:5px;font-size:11px;color:#FF0000">	*	</span>
				</td>
			</tr>

		  <tr>
			<td colspan="2" class="mainTableTitle">&nbsp;&raquo;&nbsp;</i>License Information</td>
		  </tr>


		<tr>
			<td class='formLabelRigit'> Portal Title :  </td>
			<td class='formLabelLeft'><input type='text' class='formInput' name='header_title' id='header_title' maxlength="20" style='width:200px;' value='<?= $header_title; ?>' />
			<span style="padding:5px;font-size:11px;color:#FF0000">	*	</span>
			</td>
		</tr>

		<tr>
			<td class='formLabelRigit'> License File :  </td>
			<td class='formLabelLeft'><input type="file" name="userfile" id="userfile" /></td>
		</tr>

			<tr>
			    <td>&nbsp;</td>
			    <td>&nbsp;</td>
	  		</tr>
	</table>
	</td>
   </tr>

  <tr>
    <td colspan="2" align="center" style="padding:15px;">
     <input type="submit" class="btn btn-success" name="submit" value="Save Profile" />
  </tr>

</table>
</form>
</div>

<?
$this->load->view('cpanel/footer');
?>
