<?php
/*
	Hezecom Email Solution
	Author: Hezecom Technologies (http://hezecom.com) info@hezecom.net
	COPYRIGHT 2014 ALL RIGHTS RESERVED
	
	You must have purchased a valid license from CodeCanyon.com in order to have 
	access this file.

	You may only use this file according to the respective licensing terms 
	you agreed to when purchasing this item.
*/
?>

<div class="heze-table">
	<div class="col-lg-12">
   
	<div class="panel panel-default">
  <div class="panel-heading">
  <h3 class="panel-title"><i class="fa fa-reorder"></i> <strong><?php echo LANG_SETTINGS;?></strong></h3></div>
  <div class="panel-body pformmargin">
 <?php if(get('view')){?>
 <form action="libraries/settings.php?view=yes" method="post"  name="form2" id="msgSend" role="form">
 <?php }else{?>
 <form action="libraries/settings.php" method="post"  name="form2" id="msgSend" role="form">
 <?php }?>
      <fieldset>
	
	<div id="output"></div>
    <div class="row">
    
    <div class="col-md-6">
	<h3>Database/General Settings</h3>      
	 <div class="form-group">
          <label class="control-label sr-only" for="host">HOST</label>
          <div class="input-group">
          <div class="input-group-addon left">HOST</div>
          <input id="host" name="host" class="form-control" type="text" value="<?php echo LOCALHOST;?>" required />
          </div>
        </div>
        
        <div class="form-group">
          <label class="control-label sr-only" for="dbname">DATABASE NAME</label>
          <div class="input-group">
          <div class="input-group-addon left">DATABASE NAME</div>
          <input id="dbname" name="dbname" class="form-control" type="text" value="<?php echo DB_NAME;?>" />
        </div>
        </div>

        <div class="form-group">
        <label class="control-label sr-only" for="username">USERNAME</label>
        <div class="input-group">
        <div class="input-group-addon left">USERNAME</div>
        <input id="username" class="form-control" name="username" placeholder="username" type="text" value="<?php echo DB_USERNAME;?>" />
        </div>
        </div>
        
        <div class="form-group">
          <label class="control-label sr-only" for="password">PASSWORD</label>
          <div class="input-group">
          <div class="input-group-addon left">PASSWORD</div>
          <input id="password" name="password" class="form-control" type="text" value="<?php echo DB_PASSWORD;?>" />
          </div>
          </div>
          
          <input name="dbtype" type="hidden" value="mysql"/>

 <div class="form-group">
          <label class="control-label sr-only" for="ptitle">PROJECT TITLE</label>
          <div class="input-group">
          <div class="input-group-addon left">PROJECT TITLE</div>
          <input id="ptitle" name="ptitle" class="form-control" type="text" value="<?php echo H_TITLE;?>" />
          </div>
          </div>
          
          <input type="hidden" value="Normal" name="pgtype">
          
          <div class="form-group">
          <label class="control-label sr-only" for="furl">USER FRIENDLY URL</label>
          <div class="input-group">
          <div class="input-group-addon left">USER FRIENDLY URL</div>
          <select name="furl" id="furl" class="form-control input-lg choz">
          <option value="<?php echo FRIENDLY_URL;?>"><?php echo FRIENDLY_URL;?></option>
          <option value="YES">YES</option>
          <option value="NO">NO</option>
          </select>
          </div>
          </div>
          
          <div class="form-group">
          <label class="control-label sr-only" for="recordsp">RECORDS TO DISPLAY PER PAGE</label>
          <div class="input-group">
          <div class="input-group-addon left">RECORDS TO DISPLAY PER PAGE</div>
          <input id="recordsp" name="recordsp" class="form-control" type="text" value="<?php echo RECORD_PER_PAGE;?>" />
          </div>
          </div>
          
           <div class="form-group">
          <label class="control-label sr-only" for="adminuser">IMAGE SIZE </label>
           <div class="input-group">
          <div class="input-group-addon left">IMAGE WIDTH SIZE</div> 
         
   <input id="bigsize" name="bigsize" class="form-control" type="text" value="<?php echo BIG_IMAGE_WIDTH;?>" />
   </div>
   </div>
   
  
   <input id="thumbsize" name="thumbsize" type="hidden" value="100" />
         
   		
		<?php if(get('view')){?>
    	<div class="form-group">
          <label class="control-label sr-only" for="adminuser">ADMIN USERNAME</label>
          <div class="input-group">
          <div class="input-group-addon left">ADMIN USERNAME</div>
          <input id="adminuser" name="adminuser" class="form-control" type="text" value="<?php echo ADMIN_USERNAME;?>" />
          </div>
          </div>
          
          <div class="form-group">
          <label class="control-label sr-only" for="adminpwd">ADMIN PASSWORD</label>
          <div class="input-group">
          <div class="input-group-addon left">ADMIN PASSWORD</div>
          <input id="adminpwd" name="adminpwd" class="form-control" type="text" value="<?php echo ADMIN_PASSWORD;?>" />
          </div>
          </div>
          <?php }else{?>
          <input  name="adminuser"  type="hidden" value="admin" />
          <input  name="adminpwd" type="hidden" value="hezecom" />
          <?php }?>
 </div><!--/col-md-6-->    
    
    <div class="col-md-6">
    <h3>Cpanel Host Settings</h3>      
   <div class="form-group">
   <div class="input-group">
   <div class="input-group-addon left">Domain Name</div>
    <input name="url" type="text" id="url" value="<?php echo C_URL; ?>" class="form-control">
    </div>
    <small>This is your website address <i>e.g yourname.com</i></small>
    </div>
    
   <div class="form-group">
   <div class="input-group">
   <div class="input-group-addon left">Host IP Address</div>
    <input name="ip" type="text" id="ip" value="<?php echo C_IP; ?>" class="form-control">
    </div>
    <small>This is your host ip address <i>e.g 267.200.20.100</i></small>
    </div>
    
   <div class="form-group">
   <div class="input-group">
   <div class="input-group-addon left">Host Username</div>
    <input name="cuser" type="text" id="cuser" value="<?php echo C_USERNAME; ?>" class="form-control">
    </div>
    <small>This is your host username</small>
    </div>
    
   <div class="form-group">
   <div class="input-group">
   <div class="input-group-addon left">Host Password</div>                      
    <input name="cpwd" type="password" id="cpwd" value="<?php echo C_PASSWORD; ?>" class="form-control">
    </div>
    <small>This is your host password</small>
    </div>
    
   <div class="form-group">
   <div class="input-group">
   <div class="input-group-addon left">Host Port</div>                      
    <input name="port" type="text" class="form-control" id="port" value="<?php echo C_PORT; ?>" >
    </div>
    <small><i>please leave this if you are not sure(default port is 2083)</i></small>
    </div>
    
    <div class="form-group">
   <div class="input-group">
   <div class="input-group-addon left">Disc Quota</div>                      
    <input name="quota" type="text" id="quota" value="<?php echo DISC_QUOTA; ?>" class="form-control">
    </div>
    <small>This is the max disc size per user in MB</small>
    </div>
    </div><!--/com-md-6-->
 
	</div><!--/row-->
     
     <div class="row"> 
     <div class="col-md-12">        
    <div class="control-group"><br />
    <?php if(get('view')){?>
    <button type="submit" name="button" class="btn btn-lg btn-primary signup-btn" id="msgButton">Update Settings</button>
    <?php }else{?>
    <button type="submit" name="button" class="btn btn-lg btn-primary signup-btn" id="msgButton">Continue</button>
    <?php }?>
    </div>
    </div>
    </div>
    </fieldset>
    </form>

</div>
</div>
</div>
</div>