Location: PHPKode > projects > INTELIMEN - WYSIWYG HTML Browser Editor > editor/pg.hyperlink.php
<?include(dirname($SCRIPT_FILENAME)."/lib.editor.inc.php");
echo "
<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>
<html>
<head>
  <title>{$lang[insert_hyperlink]}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</title>
  <link rel='stylesheet'  type='text/css' href='styles.editor.inc.css'>
  <script language='JavaScript'>
    function onLoad() {
      form.a_Href.value           = window.dialogArguments.a_Href;
      form.a_Target.value         = window.dialogArguments.a_Target;
      form.a_Class.value          = window.dialogArguments.a_Class;
      form.a_Name.value           = window.dialogArguments.a_Name;
      form.a_Title.value          = window.dialogArguments.a_Title;
    }
    function onSubmit() {
      var code = new Array();
      code.a_Href                 = form.a_Href.value;
      code.a_Target               = form.a_Target.value;
      code.a_Class                = form.a_Class.value;
      code.a_Name                 = form.a_Name.value;
      code.a_Title                = form.a_Title.value;
      window.returnValue=code;
      window.close();
    }
  </script>
</head>
<body class='dlg' topmargin='0' leftmargin='0' scroll='no' onload='onLoad()'>
<center>
<form name='form'>
  <table class='dlg' cellpadding='0' cellspacing='2' width='100%' height='100%'>
    <tr>
      <td colspan='4'>
        <table class='dlg' width='100%'>
          <tr>
            <td class='dlg'>{$lang[hyperlink]}</td>
            <td class='dlg' valign='middle' width='100%'><hr width='100%'><input type='hidden' name='a_Class'><input type='hidden' name='a_Name'></td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td>
        <table width='100%'>
          <tr>
            <td class='dlg'>{$lang[url]}:</td>
            <td class='dlg'><input class='dlg' type='text' name='a_Href' style='width:200;' size='35' value='http://'></td>
          </tr>
          <tr>
            <td class='dlg'>{$lang[comment]}:</td>
            <td class='dlg'><input class='dlg' type='text' name='a_Title' style='width:200;' size='8' value=''></td>
          </tr>
          <tr>
            <td class='dlg'>{$lang[target]}:</td>
            <td>
              <select class='dlg' name='a_Target' style='WIDTH:200px;'>
                <option value='_self'     >$lang[_self]</option>
                <option value='_parent'   >$lang[_parent]</option>
                <option value='_top'      >$lang[_top]</option>
                <option value='_blank'    >$lang[_blank]</option>
              </select>
            </td>
          </tr>
        </table>
      </td>
      <td>&nbsp;</td>
    </tr>
    <tr>
      <td colspan='5'>
        <table class='dlg' width='100%'>
          <tr>
            <td valign='middle' width='100%'><hr width='100%'></td>
          </tr>
        </table>
      </td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td class='dlg' colspan='2' align='center'><input class='dlg' type='button' value='{$lang[ok]}' title='{$lang[ok]}' onclick='javascript:onSubmit();'>&nbsp;&nbsp;&nbsp;<input class='dlg' type='button' value='{$lang[cancel]}' title='{$lang[cancel]}' onclick='javascript:window.returnValue=false;window.close();'><BR><BR></td>
      <td>&nbsp;</td>
    </tr>
  </table>
</center>
</form>
</body>
</html>";
?>
Return current item: INTELIMEN - WYSIWYG HTML Browser Editor