Location: PHPKode > projects > Article Manager > pm30/cgi/templates/admin/ta_tempedit.htm
%%TEMPLATE:adminheader%%
%%TEMPLATE:adminheader_temp%%

<SCRIPT LANGUAGE="JavaScript">
function displayHTML() {
var inf = document.name.text.value;
win = window.open(", ", 'popup', 'toolbar = no, status = no, scrollbars=yes');
win.document.write("" + inf + "");
}
function HighlightAll() {
	var tempval=eval("document.name.text")
	tempval.focus()
	tempval.select()
	if (document.all){
	therange=tempval.createTextRange()
	therange.execCommand("Copy")
	window.status="Contents highlighted and copied to clipboard!"
	setTimeout("window.status=''",1800)
	}
}
var NS4 = (document.layers);   
var IE4 = (document.all);
var win = window;    
var n   = 0;

//-----------------------------------
// Credits:
// Original version of find code has been built from a public forum posted by Jagfire.
// http://www.experts-exchange.com/Web/Web_Languages/HTML/Q_20582315.html
//-----------------------------------

function findInPage(str) {
  var txt, i, found;
  if (str == '')
    return false;
  if (NS4) {
    if (!win.find(str))
      while(win.find(str, false, true))
        n++;
    else
      n++;
    if (n == 0)
      alert('The text was not found.');
  }

  if (IE4) {
    txt = win.document.body.createTextRange();
    for (i = 0; i <= n && (found = txt.findText(str)) != false; i++) {
      txt.moveStart('character', 1);
      txt.moveEnd('textedit');
    }
    if (found) {
      txt.moveStart('character', -1);
      txt.findText(str);
      txt.select();
      txt.scrollIntoView();
      n++;
    } else {
      if (n > 0) {
        n = 0;
        findInPage(str);
      }
      else
	alert('The text was not found.');
    }
  }
  return false;
}
</script>



                <center>
                <font color="#333333" size="2" face="Verdana, Verdana"><b>
                Edit Template:
                </b></font>
		<p>
		<table border=0>
		<tr><td>
		%%output%%
		</td></tr>
		</table>
		</center>

%%TEMPLATE:adminfooter%%
Return current item: Article Manager