Location: PHPKode > scripts > OekakiPoteto > oekakipoteto/noteBBS.php
<?
$timestart=1;
include('header.php');
include('flagchk.php');
if (!check_flag('D')) {
	$axcord = 0;
	$aycord = 0;
	$xcord = 0;
	$ycord = 0;
}

if (($xcord > $xCanvas) ||  ($ycord > $yCanvas)) {
	$xcord = $xCanvas; 
	$ycord = $yCanvas;
}

if(isset($edit)){
	$result = mysql_query("SELECT PIC_ID, usrname FROM ".$OekakiPoteto_Prefix."oekakidta WHERE PIC_ID='$edit'");
	$row = mysql_fetch_array($result);
	if($row[usrname] != $OekakiU){
		$result2 = mysql_query("SELECT PIC_ID, usrname FROM ".$OekakiPoteto_Prefix."oekakidta WHERE usrname='$OekakiU'");
		$row = mysql_fetch_array($result2);
		$edit = $row[PIC_ID];
	}
	$size = GetImageSize($OPpics.'/'.$row[PIC_ID].".png");
	$xcord = $size[0];
	$ycord = $size[1];
	
	if(!isset($axcord)){
	$axcord = $size[0] + 150;
	$aycord = $size[1] + 200;
	}
}



?>
<SCRIPT language=JavaScript>


<!--

function paintBBSCallback(value){
	if (value == "start"){
		PaletteSave()
	}
	if (value == "header"){
	  var d = document.form;
	  var forms = new String();
	  var n = new String();
	  var m = new String();
	  var u = new String();
	  var p = new String();
	  var t = new String();
	  var c = new String();
  	n = d.name.value;
  	m = d.mail.value;
  	u = d.url.value;
	p = d.password.value;
	t = d.title.value;
	c = d.mesg.value;
	var sp = new String();sp=d.speed.options[d.speed.selectedIndex].value
	f = d.flower.checked;	if (f == true){f = 1}else{f=""};
	forms += "name\t" + n + "\fmail\t" + m + "\furl\t" + u + "\ftitle\t" + t + "\fmesg\t" + c + "\fpasswrd\t" + p + "\fflower\t" + f + "\fpaint_time\t1011521433\fpaint_add\t\fagent\tMozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; Q312461)\fapp\tsii"+"\fanime_speed\t"+sp;
	return forms;
	}
}
var Palettes = new Array();
Palettes[0] = "#000000\n#FFFFFF\n#B47575\n#888888\n#FA9696\n#C096C0\n#FFB6FF\n#8080FF\n#25C7C9\n#E7E58D\n#E7962D\n#99CB7B\n#FCECE2\n#F9DDCF";
Palettes[1] = "#FFF0DC\n#52443C\n#FFE7D0\n#5E3920\n#FFD6C0\n#B06A54\n#FFCBB3\n#C07A64\n#FFC0A3\n#DEA197\n#FFB7A2\n#ECA385\n#000000\n#FFFFFF";
Palettes[2] = "#FFEEF7\n#FFE6E6\n#FFCAE4\n#FFC4C4\n#FF9DCE\n#FF7D7D\n#FF6AB5\n#FF5151\n#FF2894\n#FF0000\n#CF1874\n#BF0000\n#851B53\n#800000";
Palettes[3] = "#FFE3D7\n#FFFFDD\n#FFCBB3\n#FFFFA2\n#FFA275\n#FFFF00\n#FF8040\n#D9D900\n#FF5F11\n#AAAA00\n#DB4700\n#7D7D00\n#BD3000\n#606000";
Palettes[4] = "#C6FDD9\n#E8FACD\n#8EF09F\n#B9E97E\n#62D99D\n#9ADC65\n#1DB67C\n#65B933\n#1A8C5F\n#4F8729\n#136246\n#2B6824\n#0F3E2B\n#004000";
Palettes[5] = "#DFF4FF\n#C1FFFF\n#80C6FF\n#6DEEFC\n#60A8FF\n#44D0EE\n#1D56DC\n#209CCC\n#273D8F\n#2C769A\n#1C2260\n#295270\n#000040\n#003146";
Palettes[6] = "#E9D2FF\n#E1E1FF\n#DAB5FF\n#C1C1FF\n#CE9DFF\n#8080FF\n#B366FF\n#6262FF\n#9428FF\n#3D44C9\n#6900D2\n#33309E\n#3F007D\n#252D6B";
Palettes[7] = "#ECD3BD\n#F7E2BD\n#E4C098\n#DBC7AC\n#C8A07D\n#D9B571\n#896952\n#C09450\n#825444\n#AE7B3E\n#5E4435\n#8E5C2F\n#493830\n#5F492C";
Palettes[8] = "#FFEADD\n#DED8F5\n#FFCAAB\n#9C89C4\n#F19D71\n#CF434A\n#52443C\n#F09450\n#5BADFF\n#FDF666\n#0077D9\n#4AA683\n#000000\n#FFFFFF";
Palettes[9] = "#F6CD8A\n#FFF99D\n#89CA9D\n#C7E19E\n#8DCFF4\n#8CCCCA\n#9595C6\n#94AAD6\n#AE88B8\n#9681B7\n#F49F9B\n#F4A0BD\n#8C6636\n#FFFFFF";
Palettes[10] = "#C7E19E\n#D1E1FF\n#A8D59D\n#8DCFE0\n#7DC622\n#00A49E\n#528413\n#CBB99C\n#00B03B\n#766455\n#007524\n#5B3714\n#0F0F0F\n#FFFFFF";
Palettes[11] = "#FFFF80\n#F4C1D4\n#EE9C00\n#F4BDB0\n#C45914\n#ED6B9E\n#FEE7DB\n#E76568\n#FFC89D\n#BD3131\n#ECA385\n#AE687E\n#0F0F0F\n#FFFFFF";
Palettes[12] = "#FFFFFF\n#7F7F7F\n#EFEFEF\n#5F5F5F\n#DFDFDF\n#4F4F4F\n#CFCFCF\n#3F3F3F\n#BFBFBF\n#2F2F2F\n#AFAFAF\n#1F1F1F\n#0F0F0F\n#000000";
Palettes[13] = "#000000\n#FFFFFF\n#B47575\n#888888\n#FA9696\n#C096C0\n#FFB6FF\n#8080FF\n#25C7C9\n#E7E58D\n#E7962D\n#99CB7B\n#FCECE2\n#F9DDCF";

function setPalette(){
	d = document
	d.paintbbs.setColors(Palettes[d.Palette.select.selectedIndex])
	if (! d.grad.view.checked){return}
	GetPalette();
}
function PaletteSave(){
	Palettes[0] = String(document.paintbbs.getColors())
}
var cutomP = 0;
function PaletteNew(){
	d = document
	p = String(d.paintbbs.getColors())

	s = d.Palette.select
	Palettes[s.length] = p
	cutomP++
	str = prompt("Save Current Palette?","Custom " + cutomP)
	if(str == null || str == ""){cutomP--;return}
	s.options[s.length] = new Option(str)
	if(s.length < 30) s.size = s.length
}
function PaletteRenew(){
	d = document
	Palettes[d.Palette.select.selectedIndex] = String(d.paintbbs.getColors())
}
function PaletteDel(){
	p = Palettes.length
	s = document.Palette.select
	i = s.selectedIndex
	if(i == -1)return
	
	flag = confirm(""+s.options[i].text + ": Delete This Palette?")
	if (!flag) return
	s.options[i] = null
	while(i<p){
		Palettes[i] = Palettes[i+1]
		i++
	}
	if(s.length < 30) s.size = s.length
}
function P_Effect(v){
	v=parseInt(v)
	x = 1
	if(v==255)x=-1
	d = document.paintbbs
	p=String(d.getColors()).split("\n")
	l = p.length
	var s = ""
	for(n=0; n<l;n++){
		R = v+(parseInt("0x" + p[n].substr(1,2))*x)
		G = v+(parseInt("0x" + p[n].substr(3,2))*x)
		B = v+(parseInt("0x" + p[n].substr(5,2))*x)
		if(R > 255){ R = 255}
		else if(R < 0){ R = 0}
		if(G > 255){ G = 255}
		else if(G < 0){ G = 0}
		if(B > 255){ B = 255}
		else if(B < 0){ B = 0}
		s += "#"+Hex(R)+Hex(G)+Hex(B)+"\n"
	}
	d.setColors(s)
}
function PaletteMatrixGet(){
	d = document.Palette
	p = Palettes.length
	s = d.select
	m = d.m_m.selectedIndex
	t = d.setr
	t.value = "!Palette\n"+String(document.paintbbs.getColors())
	switch(m){
	case 0:case 2:default:
		n=0;c=0
		while(n<p){
			if(s.options[n] != null){ t.value = t.value + "\n!"+ s.options[n].text +"\n" + Palettes[n];c++}
			n++
		}
		alert ("ƒpƒŒƒbƒg”F"+c+"\nƒpƒŒƒbƒgƒ}ƒgƒŠƒNƒX‚ðŽæ“¾‚µ‚Ü‚µ‚½");break
	case 1:
		alert("Œ»ÝŽg—p‚³‚ê‚Ä‚¢‚éƒpƒŒƒbƒgî•ñ‚ðŽæ“¾‚µ‚Ü‚µ‚½");break
	}
		t.value = t.value + "\n!Matrix"
}
function PalleteMatrixSet(){
	m = document.Palette.m_m.selectedIndex;
	str = "ƒpƒŒƒbƒgƒ}ƒgƒŠƒNƒX‚ðƒZƒbƒg‚µ‚Ü‚·B"
	switch(m){
	case 0:default:
		flag = confirm(str+"\nŒ»Ý‚Ì‘SƒpƒŒƒbƒgî•ñ‚ÍŽ¸‚í‚ê‚Ü‚·‚ª‚æ‚낵‚¢‚Å‚·‚©H");break
	case 1:
		flag = confirm(str+"\nŒ»Ý•Ž¦‚µ‚Ä‚¢‚éƒpƒŒƒbƒg‚Æ’u‚«Š·‚¦‚Ü‚·‚ª‚æ‚낵‚¢‚Å‚·‚©H");break;
	case 2:
		flag = confirm(str+"\nŒ»Ý‚̃pƒŒƒbƒgî•ñ‚ɒljÁ‚µ‚Ü‚·‚ª‚æ‚낵‚¢‚Å‚·‚©H");break
	}
		if (!flag) return
	
	PaletteSet()
	if(s.length < 30){ s.size = s.length}else{s.size=30};
	
}
function PalleteMatrixHelp(){
alert("This might not be totaly correct or even make any sence. Ive gone over the options and what they do and have tried to explain everything to the best of my knowledge here.\n\nWhen you press load, A single palette, or all palettes, data will be loaded into the small text box area. You can edit what is in this field, or copy and paste new data. What the save option does depends on what selection you have chosen from the choice box.\nChoices:\nA1= Loads All Palettes into text box. When saved, It will create all new palette names and wipe out all old ones in the list.\nA2 = Loads currently selected palette into text box. Any changes will be reflected on the screen in the color picker window. They will revert back to default if you select another palette. Use the Save Palette function if you want to keep the changes.\nA3 = Loads all Palettes into text box. When saved, It will create all new palette names for each palette in the text box areas. You can add new palettes using this option. The palette format is:\n\n!palette name\n#colors data[14 of these all together]\n!matrix\n\nThe most usefull use for this that i can see is if you have a set of colors you really like and would like to save and be able to load again in a different paint session. You would have your palette selected, then choose option A2 and press load. Now, copy the data that appears in the text box and paste it into a word pad or whatever and save. When you want to load that info back in, choose option A3, paste your palette data into the text box, and then hit save.");
}
function PaletteSet(){
	d = document.Palette
	se = d.setr.value;
	s = d.select;
	m = d.m_m.selectedIndex;
	l = se.length
	if(l<1){
		alert("ƒ}ƒgƒŠƒNƒXî•ñ‚ª‚ ‚è‚Ü‚¹‚ñB");return

	}
		n = 0;o = 0;e = 0
	switch(m){
	case 0:default:
		n = s.length
		while(n > 0){
			n--
			s.options[n] = null
		}
	case 2:
		i=s.options.length
		n = se.indexOf("!",0)+1
		if(n == 0)return
		while(n<l){
			e = se.indexOf("\n#",n)
			if(e == -1)return
			
			pn = se.substring(n,e-1)
			o = se.indexOf("!",e)
			if(o == -1)return
			pa = se.substring(e+1,o-2)
			if (pn != "Palette"){
			if(i >= 0)s.options[i] = new Option(pn)
			
			Palettes[i] = pa
			i++
			}else{document.paintbbs.setColors(pa)}
			
			n=o+1
		}
		break
	case 1:
		n = se.indexOf("!",0)+1
		if(n == 0)return
		e = se.indexOf("\n#",n)
		o = se.indexOf("!",e)
			if(e >= 0){
				pa = se.substring(e+1,o-2)
			}
		document.paintbbs.setColors(pa)
	}
}
function Chenge_(){
	var st = document.grad.pst.value
	var ed = document.grad.ped.value
	
	if(isNaN(parseInt("0x" + st)))return
	if(isNaN(parseInt("0x" + ed)))return
	GradView("#"+st,"#"+ed);
}
function ChengeGrad(){
	var d =document
	var st = d.grad.pst.value
	var ed = d.grad.ped.value
	Chenge_()
	
	var degi_R = parseInt("0x" + st.substr(0,2))
	var degi_G = parseInt("0x" + st.substr(2,2))
	var degi_B = parseInt("0x" + st.substr(4,2))
	 var R = parseInt((degi_R - parseInt("0x" + ed.substr(0,2)))/15)
	 var G = parseInt((degi_G - parseInt("0x" + ed.substr(2,2)))/15)
	 var B = parseInt((degi_B - parseInt("0x" + ed.substr(4,2)))/15)
	 if(isNaN(R)) R = 1
	 if(isNaN(G)) G = 1
	 if(isNaN(B)) B = 1
		var p = new String()
		for(cnt=0,m1=degi_R,m2=degi_G,m3=degi_B; cnt<14; cnt++,m1-=R,m2-=G,m3-=B){
		if ((m1 > 255)||(m1 < 0)){ R *= -1;m1-=R}
		if ((m2 > 255)||(m2 < 0)){ G *= -1;m2-=G}
		if ((m3 > 255)||(m3 < 0)){ B *= -1;m2-=B}
		p += "#"+Hex(m1)+Hex(m2)+Hex(m3)+"\n"
		
		}
	d.paintbbs.setColors(p);
}
function Hex(n){
	n = parseInt(n);if (n < 0) n *=-1;
	var hex = new String()
	var m
	var k
	while(n > 16){
	m = n
	if (n >16){
		n = parseInt(n/16)
		m -= (n * 16)
	}
		k = Hex_(m)
		hex = k + hex
	}
		k = Hex_(n)
		hex = k + hex
	while(hex.length < 2){hex="0" + hex}
	return hex
}
function Hex_(n){
	if(! isNaN(n)){
		if(n == 10){n="A"}
		else if(n == 11){n="B"}
		else if(n == 12){n="C"}
		else if(n == 13){n="D"}
		else if(n == 14){n="E"}
		else if(n == 15){n="F"}
	}else{n=""}
	return n
}
function GetPalette(){
	d = document
	p = String(document.paintbbs.getColors());
	 if(p == "null" || p == ""){return};
	ps = p.split("\n");
	st = d.grad.p_st.selectedIndex
	ed = d.grad.p_ed.selectedIndex
	d.grad.pst.value = ps[st].substr(1.6)
	d.grad.ped.value = ps[ed].substr(1.6)
	GradSelC()
	GradView(ps[st],ps[ed])
}
function GradSelC(){
	if (! d.grad.view.checked)return
	d = document.grad
	l = ps.length
	pe=""
	for(n=0; n<l;n++){
		R = 255+(parseInt("0x" + ps[n].substr(1,2))*-1)
		G = 255+(parseInt("0x" + ps[n].substr(3,2))*-1)
		B = 255+(parseInt("0x" + ps[n].substr(5,2))*-1)
		if(R > 255){ R = 255}
		else if(R < 0){ R = 0}
		if(G > 255){ G = 255}
		else if(G < 0){ G = 0}
		if(B > 255){ B = 255}
		else if(B < 0){ B = 0}
		pe += "#"+Hex(R)+Hex(G)+Hex(B)+"\n"
	}
	pe = pe.split("\n");
	for(n=0;n < l;n++){
		d.p_st.options[n].style.background = ps[n];
		d.p_st.options[n].style.color = pe[n];
		d.p_ed.options[n].style.background = ps[n];
		d.p_ed.options[n].style.color = pe[n];
	}
}
function GradView(st,ed){
	d = document
	if (! d.grad.view.checked)return
	 html = "<TABLE BGCOLOR=white cellspacing=0 cellpadding=0><TR><TD colspan=2><TT><font color=#6699FF><B>GRADATION</B></TT></TD></TR><TR><TD><TT><font color=#6699FF>START </TT></TD><TD><FONT COLOR="+st+" SIZE=4>¡</FONT></TD></TR><TR><TD><font color=#6699FF><TT>END </TT></TD><TD><FONT COLOR="+ed+" SIZE=4>¡</FONT></TD></TR></TABLE>";
	  if(d.layers) {
	     with(d.layers["psft"]){
	     	left = window.innerWidth - 120
	     	top = window.pageYOffset+5
		   d = document
		   d.open()
   		   d.write(html)
    		   d.close();
	       }
	  }

	else if(d.all){
		with(d.all("psft")){
		style.left = d.body.offsetWidth - 120
		style.top = d.body.scrollTop+5
		innerHTML = html
		}
	}
}

function showHideLayer() { //v3.0
	d = document
	var l
  if(d.layers) {
  	l = d.layers["psft"]
  }else{

  	l = d.all("psft").style
  	
  }
 if (! d.grad.view.checked){
  	l.visibility = "hidden"
 }
 if (d.grad.view.checked){
  	l.visibility = "visible";GetPalette()
 }
}
//-->
</SCRIPT>
<p></p>
<br>
<br>
<br>
<table width="<?=$hWidth?>" cellpadding="<?=$hCellPadding?>" align="center" cellspacing="2" class="infotable">
  <tr> 
    <td> 
      <center>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td colspan="2"><div align="center"><?=$langop_applet_retouch?></div></td>
          </tr>
          <tr> 
            <td width="79%"> <div align="center"> 
                <applet code="pbbs.PaintBBS.class" 
		align="baseline" width="<?=$axcord?>" 
		height="<?=$aycord?>" 
		archive="PaintBBS.jar" 
		name="paintbbs" 
		MAYSCRIPT>
                  <param name="image_width" value="<?=$xcord?>">
                  <param name="image_height" value="<?=$ycord?>">
                  <param name="image_size" value="65">
                  <param name="image_bkcolor" value="#ffffff">
                  <param name="compress_level" value="4">
                  <param name="undo" value="60">
                  <param name="undo_in_mg" value="12">
                  <param name="color_text"value="#505078">
                  <param name="color_bk" value="#9999bb">
                  <param name="color_bk2" value="#8888aa">
                  <param name="color_icon" value="#ccccff">
                  <?if(isset($edit)){?>
                  <param name="image_canvas" value="<?=$OPpics?>/<?=$edit?>.png">
                  <param name="url_save" value="functions.php?mode=picsave&edit=<?=$edit?>&edittimes=<?=time()?>&datatype=0">
                  <param name="url_exit" value="index.php">
                  <?}else{?>
                  <param name="url_save" value="functions.php?username=<?=urlencode($OekakiU)?>&mode=picsave&edittimes=<?=time()?>">
                  <param name="url_exit" value="index.php?mode=res_msg&datatype=0">
                  <?}
mysql_close();
?>
                  <param name="url_target" value="_self">
                  <param name="tool_advance" value="true">
                  <param name="send_advance" value="true">
                  <param name="poo" value="true">
                  <param name="thumbnail_type" value="png">
                  <param name="thumbnail_width" value="100%">
                  <param name="thumbnail_height" value="100%">
                  <param name="security_click" value="0">
                  <param name="security_timer" value="0">
                  <param name="security_url" value="http://www.npa.go.jp/">
                  <param name="security_post" value="false">
                </applet>
              </div></td>
            <td width="21%"> <table cellspacing=0 cellpadding=3 width="100%" align="right">
                <tbody>
                  <tr> 
                    <td><b>Palette</b> <form name ="Palette">
                        <p> 
                          <input onClick=PaletteSave() type=button value="Set As Default Palette" name="button2" class="submit">
                          <br>
                          <select 
                 onChange=setPalette() name=select size="14" class="multiline">
                            <option selected>Default</option>
                            <option>Hadairo</option>
                            <option>Red</option>
                            <option>Yellow</option>
                            <option>Green</option>
                            <option>Blue</option>
                            <option>Purple</option>
                            <option>Brown</option>
                            <option>Character</option>
                            <option>Pastel</option>
                            <option>Sougen</option>
                            <option>Moe</option>
                            <option>Grayscale</option>
                            <option>Main</option>
                          </select>
                          <br>
                          <input class="submit" onClick=PaletteNew() type=button value="Save Palette" name="button">
                          <br>
                          <input class="submit" onClick=PaletteRenew() type=button value="Save Color Changes" name="button">
                          <br>
                          <input class="submit" onClick=PaletteDel() type=button value="Delete Palette" name="button">
                          <br>
                          <input class="submit" onClick=P_Effect(10) type=button value=Brighten name="button">
                          <br>
                          <input class="submit" onClick=P_Effect(-10) type=button value=Darken name="button">
                          <br>
                          <input class="submit" onClick=P_Effect(255) type=button value=Invert name="button">
                          <br>
                          <br>
                          <b>Palette Minipulate/Create<br>
                          </b><br>
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                          <select 
                  class="submit" name=m_m>
                            <option value=0 selected>A1</option>
                            <option value=1>A2</option>
                            <option 
                  value=2>A3</option>
                          </select>
                          <br>
                          <input class="submit" onClick=PaletteMatrixGet() type=button value=Load name=m_g>
                          <input class="submit" onClick=PalleteMatrixSet() type=button value=Save name=m_s>
                          <br>
                          <textarea class="multiline" onMouseOver=this.select() name=setr rows=3 cols=13></textarea>
                          <br>
                        </p>
                      </form>
                      <FORM name=grad>
                        <b>Gradation</b><br>
                        <INPUT onclick=showHideLayer() 
                  type=checkbox name=view>
                        <INPUT class="submit" onclick=ChengeGrad() type=button value=" OK ">
                        <BR>
                        <SELECT 
                  class = "txtinput" onchange=GetPalette() name=p_st>
                          <OPTION 
                    selected>1</OPTION>
                          <OPTION>2</OPTION>
                          <OPTION>3</OPTION>
                          <OPTION>4</OPTION>
                          <OPTION>5</OPTION>
                          <OPTION>6</OPTION>
                          <OPTION>7</OPTION>
                          <OPTION>8</OPTION>
                          <OPTION>9</OPTION>
                          <OPTION>10</OPTION>
                          <OPTION>11</OPTION>
                          <OPTION>12</OPTION>
                          <OPTION>13</OPTION>
                          <OPTION>14</OPTION>
                        </SELECT>
                        <INPUT 
                  class="txtinput" onkeypress=Chenge_() onchange=Chenge_() size=8 
                  name=pst>
                        <BR>
                        <SELECT class="txtinput" onchange=GetPalette() 
                  name=p_ed>
                          <OPTION>1</OPTION>
                          <OPTION>2</OPTION>
                          <OPTION>3</OPTION>
                          <OPTION>4</OPTION>
                          <OPTION>5</OPTION>
                          <OPTION>6</OPTION>
                          <OPTION>7</OPTION>
                          <OPTION>8</OPTION>
                          <OPTION>9</OPTION>
                          <OPTION>10</OPTION>
                          <OPTION>11</OPTION>
                          <OPTION selected>12</OPTION>
                          <OPTION>13</OPTION>
                          <OPTION>14</OPTION>
                        </SELECT>
                        <INPUT class="txtinput" 
                  onkeypress=Chenge_() onchange=Chenge_() size=8 name=ped>
                        <DIV id=psft 
                  style="Z-INDEX: 5; LEFT: 5px; WIDTH: 100px; POSITION: absolute; TOP: 100px; HEIGHT: 30px"></DIV>
                        <br>
                      </form></td>
                  </tr>
                </tbody>
              </table>
              <div align="right"></div></td>
          </tr>
        </table>
        <br>
        <?
if (check_flag('D')) {
?>
        <form name="form1" method="get" action="noteBBS.php">
          <table width="50%" border="0" cellspacing="0" cellpadding="2" align="center" class="infotable">
            <tr>
              <td colspan="2" height="11"><?=$langop_applet_retouch?></td>
            </tr>
            <tr> 
              <td colspan="2" height="11"><table width="<?=$hWidth?>" cellpadding="<?=$hCellPadding?>" align="center" class="header">
                  <tr> 
                    <td> <div align="center"><font size="-2"> 
                        <?=$langop_applet_modify?>
                        (
                        <?=$langop_applet_max?>
                        <?=$xCanvas?>
                        x 
                        <?=$yCanvas?>
                        )</font></div></td>
                  </tr>
                </table> </td>
            </tr>
			                <?if(!isset($edit)){?>

            <tr> 
              <td width="28%"> <div align="right"><font size="-2">X</font>:</div></td>
              <td width="72%"> <font face="Verdana, Arial, Helvetica, sans-serif" size="-2"> 
                <input type="text" name="xcord" value="<?=$xcord?>" class="txtinput">
                </font></td>
            </tr>
            <tr> 
              <td width="28%"> <div align="right"><font size="-2">Y:</font></div></td>
              <td width="72%"><font face="Verdana, Arial, Helvetica, sans-serif" size="-2"> 
                <input type="text" name="ycord" value="<?=$ycord?>" class="txtinput">
                </font></td>
            </tr>
            <? } ?>
            <tr> 
              <td colspan="2"> <table width="<?=$hWidth?>" cellpadding="<?=$hCellPadding?>" align="center" class="header">
                  <tr> 
                    <td> <div align="center"><font size="-2"><?=$langop_applet_size?></font></div></td>
                  </tr>
                </table></td>
            </tr>
            <tr> 
              <td> <div align="right"><font size="-2">X:</font></div></td>
              <td> <font face="Verdana, Arial, Helvetica, sans-serif" size="-2"> 
                <input type="text" name="axcord" value="<?=$axcord?>" class="txtinput">
                </font><font face="Verdana, Arial, Helvetica, sans-serif" size="-2">(</font><font size="-2">+100 
                <?=$langop_applet_x?>
                )</font></td>
            </tr>
            <tr> 
              <td> <div align="right"><font size="-2">Y:</font></div></td>
              <td> <font face="Verdana, Arial, Helvetica, sans-serif" size="-2"> 
                <input type="text" name="aycord" value="<?=$aycord?>" class="txtinput">
                </font><font size="-2">(+96 
                <?=$langop_applet_y?>
                )</font></td>
            </tr>
            <tr> 
              <td width="28%"> <div align="right"></div></td>
              <td width="72%"> <font face="Verdana, Arial, Helvetica, sans-serif" size="-2"> 
                <?if(isset($edit)){?>
                <input type="hidden" name="edit" value="<?=$edit?>">
                <?}?>
                <input type="submit" name="Submit" value="Modify" class="submit">
                </font></td>
            </tr>
          </table>
        </form>
      </center>
      <? } else { echo "<b>You cannot resize the picture/canvas if you do not have draw access or when you are retouching a picture.</b>"; }?>
    </td>
  </tr>
</table>
<br>
<br>
<? include('footer.php'); ?>
</body>
Return current item: OekakiPoteto