<?
//***************************************************
// http://www.scriptindonesia.com
// Solusi Hemat Script Bisnis Online Anda
// Menerima Jasa Pembuatan Website & Template Website
//***************************************************
?>
<?
//Edit Script AW 20160221
//if (session_is_registered("valid_admin")) {
  if (isset($_SESSION['valid_admin'])) {
?>
<h2><img src="images/icon-48-article.png" width="48" height="48" align="absmiddle"> Setting Bisnis ... </h2>
<?
switch($page) {
	default :
	$db->select("bisnis, startyear, title1, title2, caption, pt, headoffice, weblogin, web1, web2, web3, telp1, telp2, email, marquee, scriptindonesiaheaderjudul, scriptindonesiaheader1, scriptindonesiaheader2, about1, about2, about3, about4, about5, ketlogin, peta, keywords, description", "setting", "id=1");
	if($act == 1 or $act) {
?>
<div id="notice" align="center"><img src="images/notice-info.png" width="29" height="29" align="absmiddle" /><br />Data telah berhasil diupdate !</div>
	<?
	}
	?>
<form id="form2" name="form2" method="post" action="?m=setbisnis&amp;page=submit" enctype="multipart/form-data">

<table width="100%" border="0" cellpadding="2" cellspacing="0" bgcolor="#bfd6ed">
  <tr>
    <td width="100%" height="2" bgcolor="#cccccc">
    </td>
  </tr>
</table>

<table width="100%" border="0" cellpadding="2" cellspacing="0" bgcolor="#bfd6ed">
  <tr>
    <td width="100%" height="2" bgcolor="#cccccc">
        <!-- ------------------------------------- -->
        <div id="menu_button2" align="center">
            <strong><?= $db->config("bank2") ?></strong>
        </div>
        <!-- ------------------------------------- -->
    </td>
  </tr>
</table>

<table width="100%" border="0" align="center" cellpadding="2" cellspacing="0">
  <tr>
    <td height="30" bgcolor="#8c759a"><div align="center"><span class="title">&nbsp;&nbsp;<strong><u>Setting Bisnis Website</u></strong><u></u></span></div></td>
  </tr>
  <tr>
    <td width="956" bgcolor="#EF9400"><img src="../images/px1.gif" width="1" height="1" alt="" border="0"></td>
  </tr>
</table>

  <br />

  <!-- BISNIS -->
  <table width="70%" border="0" align="center" cellpadding="4" cellspacing="1">
    <!-- ***************************************************************** -->
    <tr class="tbl_header">
        <td colspan="2" style=""><center>Pengaturan Bisnis</center></td>
    </tr>
<!--
    <tr>
      <td width="45%" align="right" valign="top">Bisnis :</td>
      <td><?= $db->result(0, "bisnis"); ?><br />
      <input name="no" type="hidden" id="no" value="1" size="10" /></td>
    </tr>
-->
    <tr>
      <td width="45%" align="right" valign="top">Bisnis :</td>
      <td><input name="bisnis" type="text" id="bisnis" value="<?= $db->result(0, "bisnis"); ?>" size="26" maxlength="100" placeholder="Nama Bisnis ?..." /> <font color="#0000ff">*contoh :</font> PayTren, MMBC, MCI, 4Jovem, dll
      <input name="no" type="hidden" id="no" value="1" size="10" />
      </td>
    </tr>
    <tr>
      <td align="right" valign="top">PT :</td>
      <td><input name="pt" type="text" id="pt" value="<?= $db->result(0, "pt"); ?>" size="46" maxlength="150" placeholder="Nama Perusahaan ?..." /></td>
    </tr>
    <tr>
      <td align="right" valign="top">Head Office :</td>
      <td><textarea name="headoffice" cols="60" rows="3" id="headoffice" maxlength="250" placeholder="Alamat Lengkap Perusahaan ?..."><?= $db->result(0, "headoffice"); ?></textarea><br /></td>
    </tr>
    <tr>
      <td align="right" valign="top">Web Resmi Perusahaan :</td>
      <td><input name="web1" type="text" id="web1" value="<?= $db->result(0, "web1"); ?>" size="20" maxlength="50" /> <input name="web2" type="text" id="web2" value="<?= $db->result(0, "web2"); ?>" size="21" maxlength="50" /> <input name="web3" type="text" id="web3" value="<?= $db->result(0, "web3"); ?>" size="20" maxlength="50" /></td>
    </tr>
    <tr>
      <td align="right" valign="top">Web Login Perusahaan :</td>
      <td><input name="weblogin" type="text" id="weblogin" value="<?= $db->result(0, "weblogin"); ?>" size="46" maxlength="50" placeholder="Url Web Login Perusahaan ?..." /></td>
    </tr>
    <tr>
      <td align="right" valign="top">Telp 1 :</td>
      <td><input name="telp1" type="text" id="telp1" value="<?= $db->result(0, "telp1"); ?>" size="46" maxlength="50" placeholder="Telp. Perusahaan (1) ?..." /></td>
    </tr>
    <tr>
      <td align="right" valign="top">Telp 2 :</td>
      <td><input name="telp2" type="text" id="telp2" value="<?= $db->result(0, "telp2"); ?>" size="46" maxlength="50" placeholder="Telp. Perusahaan (2) ?..." /></td>
    </tr>
    <tr>
      <td align="right" valign="top">Email Perusahaan :</td>
      <td><input name="email" type="text" id="email" value="<?= $db->result(0, "email"); ?>" size="46" maxlength="100" placeholder="Email Perusahaan ?..." /></td>
    </tr>

    <tr>
      <td align="right" valign="top">Tahun Awal Bisnis :</td>
      <td><input name="tahun" type="text" id="tahun" value="<?= $db->result(0, "startyear"); ?>" size="4" maxlength="4" /></td>
    </tr>

    <tr>
      <td align="right" valign="top">Peta Office :</td>
      <td><textarea name="peta" cols="60" rows="7" id="peta" maxlength="" placeholder="Peta Lengkap Perusahaan ?..."><?= $db->result(0, "peta"); ?></textarea><br /></td>
    </tr>

    <tr>
      <td align="right" valign="top"></td>
      <td><u>Tampil disini :</u> <br /><br /><a href="../images/ketadminbisnis.jpg" target="_blank"><img class="img-responsive" src="../images/ketadminbisnis.jpg" width='442' height='475' title="klik untuk memperbesar" /></a><br /><br /></td>
    </tr>

    <tr><td colspan="2"><hr /></td></tr>

    <tr>
      <td align="right" valign="top">Keywords Website Anda :</td>
      <td><textarea name="keywords" cols="60" rows="3" id="keywords" maxlength="250" placeholder="Keywords Website Anda ?..."><?= $db->result(0, "keywords"); ?></textarea><br /></td>
    </tr>

    <tr>
      <td align="right" valign="top">Description Website Anda :</td>
      <td><textarea name="description" cols="60" rows="3" id="description" maxlength="250" placeholder="Description Website Anda ?..."><?= $db->result(0, "description"); ?></textarea><br /></td>
    </tr>

    <tr>
      <td align="right" valign="top">Title Website :</td>
      <td><input name="title1" type="text" id="title1" value="<?= $db->result(0, "title1"); ?>" size="20" maxlength="50" /> <input name="title2" type="text" id="title2" value="<?= $db->result(0, "title2"); ?>" size="21" maxlength="50" /></td>
    </tr>
    <tr>
      <td align="right" valign="top"></td>
      <td><u>Tampil disini :</u> <br /><br /><a href="../images/ketadmintitle.jpg" target="_blank"><img class="img-responsive" src="../images/ketadmintitle.jpg" width='442' height='126' title="klik untuk memperbesar" /></a><br /><br /></td>
    </tr>
    <tr>
      <td align="right" valign="top">Slogan / Caption :</td>
      <td><textarea name="caption" cols="60" rows="2" id="caption" maxlength="250"><?= $db->result(0, "caption"); ?></textarea><br /></td>
    </tr>
    <tr>
      <td align="right" valign="top"></td>
      <td><u>Tampil disini :</u> <br /><br /><a href="../images/ketadmincaption.jpg" target="_blank"><img class="img-responsive" src="../images/ketadmincaption.jpg" width='442' height='201' title="klik untuk memperbesar" /></a><br /><br /></td>
    </tr>
    <tr>
      <td align="right" valign="top">Tulisan Jalan :</td>
      <td><textarea name="marquee" cols="60" rows="2" id="marquee" maxlength="250"><?= $db->result(0, "marquee"); ?></textarea><br /></td>
    </tr>
    <tr>
      <td align="right" valign="top"></td>
      <td><u>Tampil disini :</u> <br /><br /><a href="../images/ketadminmarquee.jpg" target="_blank"><img class="img-responsive" src="../images/ketadminmarquee.jpg" width='442' height='103' title="klik untuk memperbesar" /></a><br /><br /></td>
    </tr>
    <tr>
      <td align="right" valign="top">Header Tiap Halaman :</td>
      <td><input name="scriptindonesiaheaderjudul" type="text" id="scriptindonesiaheaderjudul" value="<?= $db->result(0, "scriptindonesiaheaderjudul"); ?>" size="46" maxlength="100" /></td>
    </tr>
    <tr>
      <td align="right" valign="top"></td>
      <td><textarea name="scriptindonesiaheader1" cols="60" rows="2" id="scriptindonesiaheader1" maxlength="150"><?= $db->result(0, "scriptindonesiaheader1"); ?></textarea><br /></td>
    </tr>
    <tr>
      <td align="right" valign="top"></td>
      <td><textarea name="scriptindonesiaheader2" cols="60" rows="2" id="scriptindonesiaheader2" maxlength="150"><?= $db->result(0, "scriptindonesiaheader2"); ?></textarea><br /></td>
    </tr>
    <tr>
      <td align="right" valign="top"></td>
      <td><u>Tampil disini :</u> <br /><br /><a href="../images/ketadminheader.jpg" target="_blank"><img class="img-responsive" src="../images/ketadminheader.jpg" width='442' height='84' title="klik untuk memperbesar" /></a><br /><br /></td>
    </tr>

    <tr><td colspan="2"><hr /></td></tr>

    <tr>
      <td align="right" valign="top">About 1 :</td>
      <td><textarea name="about1" cols="60" rows="2" id="about1" maxlength="100"><?= $db->result(0, "about1"); ?></textarea><br /></td>
    </tr>
    <tr>
      <td align="right" valign="top">About 2 :</td>
      <td><textarea name="about2" cols="60" rows="2" id="about2" maxlength="100"><?= $db->result(0, "about2"); ?></textarea><br /></td>
    </tr>
    <tr>
      <td align="right" valign="top">About 3 :</td>
      <td><textarea name="about3" cols="60" rows="2" id="about3" maxlength="100"><?= $db->result(0, "about3"); ?></textarea><br /></td>
    </tr>
    <tr>
      <td align="right" valign="top">About 4 :</td>
      <td><textarea name="about4" cols="60" rows="2" id="about4" maxlength="100"><?= $db->result(0, "about4"); ?></textarea><br /></td>
    </tr>
    <tr>
      <td align="right" valign="top">About 5 :</td>
      <td><textarea name="about5" cols="60" rows="2" id="about5" maxlength="100"><?= $db->result(0, "about5"); ?></textarea><br /></td>
    </tr>

    <tr>
      <td align="right" valign="top"></td>
      <td><u>Tampil disini :</u> <br /><br /><a href="../images/ketadminabout.jpg" target="_blank"><img class="img-responsive" src="../images/ketadminabout.jpg" width='442' height='211' title="klik untuk memperbesar" /></a><br /><br /></td>
    </tr>


    <tr><td colspan="2"><hr /></td></tr>

    <tr>
      <td align="right" valign="top">Keterangan Login :</td>
      <td><textarea name="ketlogin" cols="60" rows="12" id="ketlogin"><?= $db->result(0, "ketlogin"); ?></textarea><br /></td>
    </tr>

    <tr>
      <td align="right" valign="top"></td>
      <td><u>Tampil disini :</u> <br /><br /><a href="../images/ketadminlogin.jpg" target="_blank"><img class="img-responsive" src="../images/ketadminlogin.jpg" width='442' height='208' title="klik untuk memperbesar" /></a><br /><br /></td>
    </tr>

    
<!-- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
<!-- ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// -->

      <tr>
        <td valign="top">&nbsp;</td>
        <td align="left">&nbsp;</td>
      </tr>

      <tr>
        <td valign="top">&nbsp;</td>
        <td align="left">&nbsp;-------------------------------------------------------</td>
      </tr>

      <tr>
        <td valign="top">&nbsp;</td>
        <td align="left" class="bingkai-ket">
           <br />
           <label>
           <input name="Submit" type="submit" class="button"  value="SAVE" />
           </label>
           <label>
           <input type="button" name="cancel" id="cancel" value="CANCEL" onclick="javascript:history.go(-1)" class="cancelbutton" />
           </label>
           <br /><br />
        </td>
      </tr>

      <tr>
        <td valign="top">&nbsp;</td>
        <td align="left">&nbsp;-------------------------------------------------------</td>
      </tr>

    <!-- ***************************************************************** -->

  <tr><td colspan="2"><hr /></td></tr>
    
  </table>
</form>
<!-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx- -->







<p>&nbsp;</p>
<?
	break;

        // BISNIS
	case submit :
            

                $db->update("setting", "bisnis='$bisnis', pt='$pt', headoffice='$headoffice', web1='$web1', web2='$web2', web3='$web3', weblogin='$weblogin', telp1='$telp1', telp2='$telp2', email='$email', startyear='$tahun', title1='$title1', title2='$title2', caption='$caption', marquee='$marquee', scriptindonesiaheaderjudul='$scriptindonesiaheaderjudul', scriptindonesiaheader1='$scriptindonesiaheader1', scriptindonesiaheader2='$scriptindonesiaheader2', about1='$about1', about2='$about2', about3='$about3', about4='$about4', about5='$about5', ketlogin='$ketlogin', peta='$peta', keywords='$keywords', description='$description'", "id='$no'");
                echo "<meta http-equiv='refresh' content='0;URL=?m=setbisnis&act=1'>";
                break;
                


}
?>	
<?
} else {
echo "<meta http-equiv=\"refresh\" content=\"1; url=illegal.html\">";
}
?>