<?php
include_once("../include/fckeditor/fckeditor.php");
if(!empty($GLOBALS['webRootPath']) && $GLOBALS['webRootPath']!='/' && $GLOBALS['webRootPath']!='\\')
    $sBasePath = $GLOBALS['webRootPath'].'/include/fckeditor/';
else
    $sBasePath = '/include/fckeditor/';
?>
    <form action="" method="post">
    <table class="listing tb2" width="600" border=0 cellspacing=0 cellpadding=3>
    <?php QUnit_Templates::printFilter(2, $this->tabtitle.L_G_PZONE_FLINKS) ?>
    <tr>
      <td class="listheaderNoLineLeft" width="100"><?php echo L_G_PZONE_SITETITLE;?></td>
      <td><input type=text name=sitetitle style="width:400px;" maxlength="50" value="<?php echo $_POST['sitetitle']?>" /> (*) </td>
    </tr>

    <tr>
      <td class="listheaderNoLineLeft" width="100"><?php echo L_G_PZONE_SITEURL;?></td>
      <td><input type=text name=siteurl style="width:400px;" maxlength="200" value="<?php echo $_POST['siteurl']?>" /> (*) </td>
    </tr>

    <tr>
        <td class="listheaderNoLineLeft" valign="top"><?php echo L_G_PZONE_LOGOURL;?></td>
        <td>
            <input type=text name=logourl style="width:400px;" maxlength="200" value="<?php echo $_POST['logourl']?>" /> <br />
            <?php
                echo L_G_PZONE_CLICKTOUPLOADIMG_DESC;
                if(!empty($_POST['logourl'])) {
                    $logohtml = '<img src="'.$_POST['logourl'].'" /><hr />';
                }
                $oFCKeditor = new FCKeditor('context');
                $oFCKeditor->BasePath	= $sBasePath;
                $oFCKeditor->ToolbarSet	= 'PAPFileBrowser';
                $oFCKeditor->Width     = 400;
                $oFCKeditor->Height     = 200;
                $oFCKeditor->Value		= $logohtml.L_G_PZONE_VIEWIMGFILE;
                $oFCKeditor->Create();
            ?>
        </td>
    </tr>

    <tr>
        <td class="listheaderNoLineLeft"><?php echo L_G_ORDER;?></td>
        <td><input type=text name=rsort style="width:400px;" maxlength="5" value="<?php echo $_POST['rsort']?>"></td>
    </tr>

    <tr>
        <td class="listheaderNoLineLeft"><?php echo L_G_STATUS;?></td>
        <td><?php echo $this->statusComboboxString;?></td>
    </tr>
    <tr>
      <td class="listheaderNoLineLeft" align=center colspan=2><center>
          <input type=hidden name="md" value="Affiliate_Merchants_Views_PZoneFriendLinks">
          <input type=hidden name="action" value="<?php echo $_REQUEST['action'];?>">
          <input type=hidden name="commited" value="yes">
          <input type=hidden name="id" value="<?php echo $this->id;?>">
          <input type=submit class=formbutton value='<?php echo L_G_SUBMIT?>'></center>
      </td>
    </tr>
    </table>
    </form>
