<? if($ajax != 'Y') { ?>
<td align="left" valign="top" width="93%">
<div class="web-booking-main">
    <div class="clear"></div>
    <!-- This is the for the page header and searchpanel -->
    <div id="gridbody">
    <? } ?>
    <div class="add-new-user-title">
            <h2><img alt="add-new-listing" src="images/setting.jpg">Settings</h2>
    </div>
    <form action="settings.php" method="post">
    <input type="hidden" name="QT" id="QT" value="<?=$QT?>">
    <input type="hidden" name="eid" id="eid" value="<?=$eid?>">
    <?=$gridtabs?>
    <br class="clear" />
    <? if ($_REQUEST['p'] == "gen" || $_REQUEST['p'] == "") { ?>
    <div class="add-new-form-bg" > General Settings</div>
    <div class="information-white-bg" id="dvpersonalinformation" >
      <div class="clear"></div>
      <?php if ($_REQUEST['p'] == "gen") { ?>
      <input type="hidden" name="p" id="p" value="<?=$_REQUEST['p']?>">
      <? } if ($_REQUEST['p'] == "") { ?>
            <input type="hidden" name="p" id="p" value="gen">
        <? } ?>    
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="44%" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="30%" align="left" valign="top" class="add-new-user-text">Site Name <span>(required)</span></td>
                <td width="79%" colspan="2" align="left" valign="top"><input name="varsitename" type="text" class="add-new-user-textarea" id="varsitename" value="<?=$row['varsitename']?>" maxlength="50" tabindex="1" /></td>
              </tr>
              <tr>
                <td align="left" valign="top" class="add-new-user-text">Site Path <span>(required)</span></td>
                <td colspan="2" align="left" valign="top"><input name="varsitepath" type="text" class="add-new-user-textarea" id="varsitepath" value="<?=$row['varsitepath']?>" maxlength="50" tabindex="1" /></td>
              </tr>
              <tr>
                <td align="left" valign="top" class="add-new-user-text">Max Client Report Email Id</td>
                <td colspan="2" align="left" valign="top"><input name="intmaxclientreportemailids" type="text" class="add-new-user-textarea" id="intmaxclientreportemailids" value="<?=$row['intmaxclientreportemailids']?>" maxlength="50" tabindex="1" /></td>
              </tr>
               <tr>
                <td  align="left" valign="top" class="add-new-user-text">Editor</td>
                <td  colspan="2" align="left" valign="middle" ><select name="vareditor" id="vareditor" class="search-textarea" style="width:225px;">
                					<option value="N" <?php if ($row['vareditor']=='N') echo 'selected'; ?>>No Editor</option>
                					<option value="F" <?php if ($row['vareditor']=='F') echo 'selected'; ?>>Fckeditor</option>
                                    <option value="T" <?php if ($row['vareditor']=='T') echo 'selected'; ?>>TinyMCE</option>
                                    </select>
               	</td>
              </tr>
              <tr>
                <td  align="left" valign="top" class="add-new-user-text">Default Pagesize</td>
                <td  colspan="2" align="left" valign="middle" ><input name="intdefaultpagesize" type="text" class="add-new-user-textarea" id="intdefaultpagesize" value="<?=$row['intdefaultpagesize']?>" maxlength="50" tabindex="1" /></td>
              </tr>
              <tr>
                <td  align="left" valign="top" class="add-new-user-text">Pagesize1</td>
                <td  colspan="2" align="left" valign="middle" ><input name="intpagesize1" type="text" class="add-new-user-textarea" id="intpagesize1" value="<?=$row['intpagesize1']?>" maxlength="50" tabindex="1" /></td>
              </tr>
              <tr>
                <td  align="left" valign="top" class="add-new-user-text">Pagesize2</td>
                <td  colspan="2" align="left" valign="middle" ><input name="intpagesize2" type="text" class="add-new-user-textarea" id="intpagesize2" value="<?=$row['intpagesize2']?>" maxlength="50" tabindex="1" /></td>
              </tr>
              <tr>
                <td  align="left" valign="top">&nbsp;</td>
                <td  colspan="2" align="left" valign="middle" >&nbsp;</td>
              </tr>
            </table></td>
        </tr>
      </table>
    </div>
    <div class="clear"></div>
    <?	}  if($_REQUEST['p'] == "ser") { ?>
    <div class="add-new-form-bg" > SMTP Settings</div>
    <div class="information-white-bg" id="dvpersonalinformation" >
      <div class="clear"></div>
      <input type="hidden" name="p" id="p" value="<?=$_REQUEST['p']?>">
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="44%" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td align="left" valign="top" class="add-new-user-text">Mailer</td>
                <td colspan="2" align="left" valign="top"><select name="varmailer" id="varmailer" style="width:225px;">
                        <option>-- Please Select --</option>
                        <option value="sendmail" <?php if ($row['varmailer']=='sendmail') echo 'selected'; ?>>Send Mail</option>
                        <option value="smtp" <?php if ($row['varmailer']=='smtp') echo 'selected'; ?>>SMTP</option>
                </select>
                </td>
              </tr>
              <tr>
                <td width="30%" align="left" valign="top" class="add-new-user-text">SMTP Server  Name <span>(required)</span></td>
                <td width="79%" colspan="2" align="left" valign="top"><input name="varsmtpserver" type="text" class="add-new-user-textarea" id="varsmtpserver" value="<?=$row['varsmtpserver']?>" maxlength="50" tabindex="1" /></td>
              </tr>
              <tr>
                <td align="left" valign="top" class="add-new-user-text">SMTP User  Name <span>(required)</span></td>
                <td colspan="2" align="left" valign="top"><input name="varsmtpusername" type="text" class="add-new-user-textarea" id="varsmtpusername" value="<?=$row['varsmtpusername']?>" maxlength="50" tabindex="1" /></td>
              </tr>
              <tr>
                <td align="left" valign="top" class="add-new-user-text">SMTP Password <span>(required)</span></td>
                <td colspan="2" align="left" valign="top"><input name="varsmtppassword" type="password" class="add-new-user-textarea" id="varsmtppassword" value="<?=decryptPass($row['varsmtppassword'])?>" maxlength="50" tabindex="1" /></td>
              </tr>
              <tr>
                <td align="left" valign="top" class="add-new-user-text">SMTP Authentication <span>(required)</span></td>
                <td colspan="2" align="left" valign="middle">Yes<input type="radio" name="chrsmtpauthentication" id="Y" value="Y" <?php if ($row['chrsmtpauthentication']=='Y') echo 'checked'; ?>/>&nbsp;No<input type="radio" name="chrsmtpauthentication" id="N" value="N" <?php if ($row['chrsmtpauthentication']=='N') echo 'checked'; ?>/>
               </td>
              </tr>
              <tr>
                <td align="left" valign="top" class="add-new-user-text">SMTP Port</td>
                <td colspan="2" align="left" valign="top"><input name="varsmtpport" type="text" class="add-new-user-textarea" id="varsmtpport" value="<?=$row['varsmtpport']?>" maxlength="50" tabindex="1" /></td>
              </tr>
              <tr>
                <td align="left" valign="top" class="add-new-user-text">Email From</td>
                <td colspan="2" align="left" valign="top"><input name="varemailfrom" type="text" class="add-new-user-textarea" id="varemailfrom" value="<?=$row['varemailfrom']?>" maxlength="50" tabindex="1" /></td>
              </tr>
             
              <tr>
                <td  align="left" valign="top">&nbsp;</td>
                <td  colspan="2" align="left" valign="middle" >&nbsp;</td>
              </tr>
            </table></td>
        </tr>
      </table>
    </div>
    <div class="clear"></div>
    <?	}  if($_REQUEST['p'] == "map") { ?>
    <div class="add-new-form-bg" > Maps Settings</div>
    <div class="information-white-bg" id="dvpersonalinformation" >
      <div class="clear"></div>
      <input type="hidden" name="p" id="p" value="<?=$_REQUEST['p']?>">
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="44%" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          	<tr>
                <td align="left" valign="top" class="add-new-user-text">GEO Code</td>
                <td colspan="2" align="left" valign="top"><input name="vargeocode" type="text" class="add-new-user-textarea" id="vargeocode" value="<?=$row['vargeocode']?>" maxlength="50" tabindex="1" /></td>
              </tr>
              <tr>
                <td width="30%" align="left" valign="top" class="add-new-user-text">Google Map API Key</td>
                <td width="79%" colspan="2" align="left" valign="top"><input name="vargooglemapapikey" type="text" class="add-new-user-textarea" id="vargooglemapapikey" value="<?=$row['vargooglemapapikey']?>" maxlength="100" tabindex="1" /></td>
              </tr>
              <tr>
                <td align="left" valign="top" class="add-new-user-text">Yahoo Map API Key</td>
                <td colspan="2" align="left" valign="top"><input name="varyahoomapapikey" type="text" class="add-new-user-textarea" id="varyahoomapapikey" value="<?=$row['varyahoomapapikey']?>" maxlength="50" tabindex="1" /></td>
              </tr>
              
              <tr>
                <td align="left" valign="top" class="add-new-user-text">&nbsp;</td>
                <td colspan="2" align="left" valign="top">&nbsp;</td>
              </tr>
            </table></td>
        </tr>
      </table>
    </div>
    <div class="clear"></div>
   <? }  if($_REQUEST['p'] == "cur") { ?>
    <div class="add-new-form-bg" > Currency Settings</div>
    <div class="information-white-bg" id="dvpersonalinformation" >
      <div class="clear"></div>
      <input type="hidden" name="p" id="p" value="<?=$_REQUEST['p']?>">
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="44%" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="30%" align="left" valign="top" class="add-new-user-text">Currency</td>
                <td width="79%" colspan="2" align="left" valign="top"><input name="varcurrency" type="text" class="add-new-user-textarea" id="varcurrency" value="<?=$row['varcurrency']?>" maxlength="50" tabindex="1" /></td>
              </tr>
              <tr>
                <td align="left" valign="top" class="add-new-user-text">Currency Symbol</td>
                <td colspan="2" align="left" valign="top"><input name="varcurrencysymbol" type="text" class="add-new-user-textarea" id="varcurrencysymbol" value="<?=$row['varcurrencysymbol']?>" maxlength="50" tabindex="1" /></td>
              </tr>
              <tr>
                <td align="left" valign="top" class="add-new-user-text">&nbsp;</td>
                <td colspan="2" align="left" valign="top">&nbsp;</td>
              </tr>
              <tr>
                <td align="left" valign="top" class="add-new-user-text">&nbsp;</td>
                <td colspan="2" align="left" valign="top">&nbsp;</td>
              </tr>
              <tr>
                <td  align="left" valign="top">&nbsp;</td>
                <td  colspan="2" align="left" valign="middle" >&nbsp;</td>
              </tr>
            </table></td>
        </tr>
      </table>
    </div>
    <div class="clear"></div>
    <? }  if($_REQUEST['p'] == "pre") { ?>
    <div class="add-new-form-bg" > Prefix Settings</div>
    <div class="information-white-bg" id="dvpersonalinformation" >
      <div class="clear"></div>
      <input type="hidden" name="p" id="p" value="<?=$_REQUEST['p']?>">
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="44%" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              
             
              <tr>
                <td width="30%"  align="left" valign="top" class="add-new-user-text">Saleid Prefix</td>
                <td  width="79%" colspan="2" align="left" valign="middle" ><input name="varsaleidprefix" type="text" class="add-new-user-textarea" id="varsaleidprefix" value="<?=$row['varsaleidprefix']?>" maxlength="50" tabindex="1" /></td>
              </tr>
              <tr>
                <td  align="left" valign="top" class="add-new-user-text">Rentid Prefix</td>
                <td  colspan="2" align="left" valign="middle" ><input name="varrentidprefix" type="text" class="add-new-user-textarea" id="varrentidprefix" value="<?=$row['varrentidprefix']?>" maxlength="50" tabindex="1" /></td>
              </tr>
              <tr>
                <td  align="left" valign="top" class="add-new-user-text">Shareid Prefix</td>
                <td  colspan="2" align="left" valign="middle" ><input name="varshareidprefix" type="text" class="add-new-user-textarea" id="varshareidprefix" value="<?=$row['varshareidprefix']?>" maxlength="50" tabindex="1" /></td>
              </tr>
              <tr>
                <td  align="left" valign="top">&nbsp;</td>
                <td  colspan="2" align="left" valign="middle" >&nbsp;</td>
              </tr>
            </table></td>
        </tr>
      </table>
    </div>
    <div class="clear"></div>
    <? }  if($_REQUEST['p'] == "fil") { ?>
    <div class="add-new-form-bg" > File Settings</div>
    <div class="information-white-bg" id="dvpersonalinformation" >
      <div class="clear"></div>
      <input type="hidden" name="p" id="p" value="<?=$_REQUEST['p']?>">
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="44%" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              
              <tr>
                <td width="30%"  align="left" valign="top" class="add-new-user-text">Thumb1</td>
                <td width="79%" colspan="2" align="left" valign="middle" ><input name="varthumb1" type="text" class="add-new-user-textarea" id="varthumb1" value="<?=$row['varthumb1']?>" maxlength="50" tabindex="1" /></td>
              </tr>
              <tr>
                <td  align="left" valign="top" class="add-new-user-text">Thumb2</td>
                <td  colspan="2" align="left" valign="middle" ><input name="varthumb2" type="text" class="add-new-user-textarea" id="varthumb2" value="<?=$row['varthumb2']?>" maxlength="50" tabindex="1" /></td>
              </tr>
              <tr>
                <td  align="left" valign="top" class="add-new-user-text">Thumb3</td>
                <td  colspan="2" align="left" valign="middle" ><input name="varthumb3" type="text" class="add-new-user-textarea" id="varthumb3" value="<?=$row['varthumb3']?>" maxlength="50" tabindex="1" /></td>
              </tr>
              <tr>
                <td  align="left" valign="top" class="add-new-user-text">Photo Upload Limit</td>
                <td  colspan="2" align="left" valign="middle" ><input name="intphotouploadlimit" type="text" class="add-new-user-textarea" id="intphotouploadlimit" value="<?=$row['intphotouploadlimit']?>" maxlength="50" tabindex="1" /></td>
              </tr>
              <tr>
                <td  align="left" valign="top" class="add-new-user-text">Video Upload Limit</td>
                <td  colspan="2" align="left" valign="middle" ><input name="intvideouploadlimit" type="text" class="add-new-user-textarea" id="intvideouploadlimit" value="<?=$row['intvideouploadlimit']?>" maxlength="50" tabindex="1" /></td>
              </tr>
              <tr>
                <td  align="left" valign="top">&nbsp;</td>
                <td  colspan="2" align="left" valign="middle" >&nbsp;</td>
              </tr>
            </table></td>
        </tr>
      </table>
    </div>
    <div class="clear"></div>
    
    <? } if ($_REQUEST['p']=='seo')  { ?>
    <div class="add-new-form-bg" > SEO Settings</div>
    <div class="information-white-bg" id="dvpersonalinformation" >
      <div class="clear"></div>
      <input type="hidden" name="p" id="p" value="<?=$_REQUEST['p']?>">
      <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="44%" align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="30%" align="left" valign="top" class="add-new-user-text">Google Analytic Code</td>
                <td width="79%" colspan="2" align="left" valign="top"><input name="vargoogleanalyticcode" type="text" class="add-new-user-textarea" id="vargoogleanalyticcode" value="<?=$row['vargoogleanalyticcode']?>" maxlength="50" tabindex="1" /></td>
              </tr>
              <tr>
                <td align="left" valign="top" class="add-new-user-text">Meta Title</td>
                <td colspan="2" align="left" valign="top"><input name="varmetatitle" type="text" class="add-new-user-textarea" id="varmetatitle" value="<?=$row['varmetatitle']?>" maxlength="50" tabindex="1" /></td>
              </tr>
               <tr>
                <td align="left" valign="top" class="add-new-user-text">Meta Keyword</td>
                <td colspan="2" align="left" valign="top"><input name="varmetakeywords" type="text" class="add-new-user-textarea" id="varmetakeywords" value="<?=$row['varmetakeywords']?>" maxlength="50" tabindex="1" /></td>
              </tr>
              <tr>
                <td align="left" valign="top" class="add-new-user-text">Meta Description</td>
                <td colspan="2" align="left" valign="top"><input name="varmetadescription" type="text" class="add-new-user-textarea" id="varmetadescription" value="<?=$row['varmetadescription']?>" maxlength="50" tabindex="1" /></td>
              </tr>
               <tr>
                <td align="left" valign="top" class="add-new-user-text">Meta Tag</td>
                <td colspan="2" align="left" valign="top"><input name="varcommanmetatags" type="text" class="add-new-user-textarea" id="varcommanmetatags" value="<?=$row['varcommanmetatags']?>" maxlength="50" tabindex="1" /></td>
              </tr>
              <tr>
                <td align="left" valign="top" class="add-new-user-text">&nbsp;</td>
                <td colspan="2" align="left" valign="top">&nbsp;</td>
              </tr>
              <tr>
                <td align="left" valign="top" class="add-new-user-text">&nbsp;</td>
                <td colspan="2" align="left" valign="top">&nbsp;</td>
              </tr>
              <tr>
                <td  align="left" valign="top">&nbsp;</td>
                <td  colspan="2" align="left" valign="middle" >&nbsp;</td>
              </tr>
            </table></td>
        </tr>
      </table>
    </div>
    <div class="clear"></div>
    <? } ?>
    <div class="add-new-user-button"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image65','','images/save-keep-editing-button-hover.jpg',1)"><input type="image" src="images/save-keep-editing-button.jpg" alt="save-keep-editing" name="Image65" width="162" height="25" hspace="5" border="0" id="Image65" /></a><a href="index.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image35','','images/cancel-button-hover.jpg',1)"><img src="images/cancel-button.jpg" alt="cancel" name="Image35" width="81" height="25" hspace="5" border="0" id="Image35" /></a></div>
    </form>
<? if($ajax != 'Y') { ?>
    </div> <!-- End of gridbody div -->
  </div>
  </td>
  <? } ?>
