git://git.jankratochvil.net
/
kewensis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
5576eb1
)
xlate
master
author
short
<>
Sat, 11 Oct 2003 17:12:58 +0000
(17:12 +0000)
committer
short
<>
Sat, 11 Oct 2003 17:12:58 +0000
(17:12 +0000)
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/index.php
index
dced3ef
..
5516faa
100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-132,9
+132,9
@@
function hiddens($array,$doinputs)
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs">
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs">
-<head><title>
Uzavreni okna
</title></head>
+<head><title>
Window close
</title></head>
<body onload="window.close();">
<body onload="window.close();">
-<p>
Uzavreni okna
</p>
+<p>
Window close
</p>
</body></html>
<?php
}
</body></html>
<?php
}
@@
-160,7
+160,7
@@
function formconvert($id,$name,$text,$readonly,$anchor,$hiddens=array())
global $tb_tree,$row,$winclose;
$readonly=(!$readonly ? "" : " readonly=\"readonly\"");
if ($winclose)
global $tb_tree,$row,$winclose;
$readonly=(!$readonly ? "" : " readonly=\"readonly\"");
if ($winclose)
- $text.=" (
uzavre okno
)";
+ $text.=" (
closes window
)";
$row=db_array("select name,PublAuthor,Publication,html from $tb_tree"
." where id=\"".mysql_escape_string($id)."\"");
$hiddens["id"]=$id;
$row=db_array("select name,PublAuthor,Publication,html from $tb_tree"
." where id=\"".mysql_escape_string($id)."\"");
$hiddens["id"]=$id;
@@
-181,12
+181,12
@@
function formconvert($id,$name,$text,$readonly,$anchor,$hiddens=array())
}
if (isset($edit))
}
if (isset($edit))
- formconvert($id,"update","
Aktualizuj zaznam
",false/*readonly*/,"#id_$id");
+ formconvert($id,"update","
Update entry
",false/*readonly*/,"#id_$id");
if (isset($confirm) && $confirming=="delete")
if (isset($confirm) && $confirming=="delete")
- formconvert($id,$confirming,"
Opravdu smazat zaznam
?",true/*readonly*/,
+ formconvert($id,$confirming,"
Really delete entry
?",true/*readonly*/,
"#family_".db_item("select family_id from $tb_tree where id=\"".mysql_escape_string($id)."\""));
if (isset($confirm) && $confirming=="isolate")
"#family_".db_item("select family_id from $tb_tree where id=\"".mysql_escape_string($id)."\""));
if (isset($confirm) && $confirming=="isolate")
- formconvert($id,$confirming,"
Opravdu izolovat zaznam
?",true/*readonly*/,"#id_$id");
+ formconvert($id,$confirming,"
Really isolate entry
?",true/*readonly*/,"#id_$id");
$reset_from_script="this.form.elements['limit_from'].value=0;";
print('<form action="index.php" method="GET">'."\n"
$reset_from_script="this.form.elements['limit_from'].value=0;";
print('<form action="index.php" method="GET">'."\n"
@@
-195,11
+195,11
@@
function formconvert($id,$name,$text,$readonly,$anchor,$hiddens=array())
.(!isset($find)?"":" value=\"".htmlspecialchars($find)."\"")
." onkeyup=\"$reset_from_script\" onchange=\"$reset_from_script\" onfocus=\"$reset_from_script\""
.' />'."\n"
.(!isset($find)?"":" value=\"".htmlspecialchars($find)."\"")
." onkeyup=\"$reset_from_script\" onchange=\"$reset_from_script\" onfocus=\"$reset_from_script\""
.' />'."\n"
- .' <input type="submit" value="
Vyhledat
" />'."\n"
+ .' <input type="submit" value="
Search
" />'."\n"
.'</h1><h2 align="center">'."\n"
.'</h1><h2 align="center">'."\n"
- .'
Prvni skupina
: <input type="text" name="limit_from" size="6" value="'.$limit_from.'" />'."\n"
+ .'
First Group
: <input type="text" name="limit_from" size="6" value="'.$limit_from.'" />'."\n"
.' '
.' '
- .'Max
skupin
: '.'<input type="text" name="limit_max" size="6" value="'.$limit_max .'" />'."\n"
+ .'Max
Groups
: '.'<input type="text" name="limit_max" size="6" value="'.$limit_max .'" />'."\n"
.'</h2></form>'."\n");
if (!isset($find))
footer(true /* delimit */);
.'</h2></form>'."\n");
if (!isset($find))
footer(true /* delimit */);
@@
-226,7
+226,7
@@
function formbutton($name,$text,$method="GET",$hidden=array(),$newwin=false,$anc
.(!$newwin ? "" : " target=\"_blank\"").">"
."<input type=\"submit\" "
.($name=="" ? "" : " name=\"".htmlspecialchars($name)."\"")
.(!$newwin ? "" : " target=\"_blank\"").">"
."<input type=\"submit\" "
.($name=="" ? "" : " name=\"".htmlspecialchars($name)."\"")
- ." value=\"".htmlspecialchars($newwin ? "(
v okne
)" : $text)."\" />"
+ ." value=\"".htmlspecialchars($newwin ? "(
in window
)" : $text)."\" />"
.hiddens($hidden,true/*doinputs*/)
."</form>";
.hiddens($hidden,true/*doinputs*/)
."</form>";
@@
-242,10
+242,10
@@
function formbutton($name,$text,$method="GET",$hidden=array(),$newwin=false,$anc
$arrows="<table border=\"0\" width=\"100%\"><tr><td align=\"center\">\n"
."<table border=\"0\" width=\"80%\"><tr><td align=\"left\">";
if ($limit_from>0)
$arrows="<table border=\"0\" width=\"100%\"><tr><td align=\"center\">\n"
."<table border=\"0\" width=\"80%\"><tr><td align=\"left\">";
if ($limit_from>0)
- $arrows.=formbutton("","Pre
dchozi
","GET",array("limit_from"=>max(0,$limit_from-$limit_max)));
+ $arrows.=formbutton("","Pre
vious
","GET",array("limit_from"=>max(0,$limit_from-$limit_max)));
$arrows.="</td><td align=\"right\">";
if (mysql_num_rows($families)>$limit_max)
$arrows.="</td><td align=\"right\">";
if (mysql_num_rows($families)>$limit_max)
- $arrows.=formbutton("","
Dalsi
","GET",array("limit_from"=>$limit_from+$limit_max));
+ $arrows.=formbutton("","
Next
","GET",array("limit_from"=>$limit_from+$limit_max));
$arrows.="</td></tr></table></td></tr></table>";
print "$arrows<hr />\n";
$arrows.="</td></tr></table></td></tr></table>";
print "$arrows<hr />\n";
@@
-256,10
+256,10
@@
function formbutton($name,$text,$method="GET",$hidden=array(),$newwin=false,$anc
$family_id=$family_row["family_id"];
print("<table border=\"0\" width=\"90%\"><tr><td align=\"right\"><a name=\"family_$family_id\">"
."<form action=\"index.php#family_$family_id\" method=\"POST\">" // WARNING: <form> will break the line!
$family_id=$family_row["family_id"];
print("<table border=\"0\" width=\"90%\"><tr><td align=\"right\"><a name=\"family_$family_id\">"
."<form action=\"index.php#family_$family_id\" method=\"POST\">" // WARNING: <form> will break the line!
- ."
Skupina c.
<input type=\"text\" size=\"10\" readonly=\"readonly\" value=\"$family_id\" />"
+ ."
Group #
<input type=\"text\" size=\"10\" readonly=\"readonly\" value=\"$family_id\" />"
."<br /><br />"
."<br /><br />"
- ."
Zaradit do teto skupiny
: <input type=\"text\" name=\"move_src\" size=\"21\" value=\"\" />"
- ." <input type=\"submit\" name=\"move\" value=\"
Zarad
\" />\n"
+ ."
Join to this group
: <input type=\"text\" name=\"move_src\" size=\"21\" value=\"\" />"
+ ." <input type=\"submit\" name=\"move\" value=\"
Join
\" />\n"
.hiddens(array("move_dst"=>$family_id),true/*doinputs*/)
."</form>\n"
."</td></tr></table>\n");
.hiddens(array("move_dst"=>$family_id),true/*doinputs*/)
."</form>\n"
."</td></tr></table>\n");
@@
-294,17
+294,17
@@
function formbutton($name,$text,$method="GET",$hidden=array(),$newwin=false,$anc
$r="</td></tr>";
print(""
.($order <= 0 ? "" :
$r="</td></tr>";
print(""
.($order <= 0 ? "" :
- $l.formbutton("reorder","^^^
Nahoru
^^^","POST",
+ $l.formbutton("reorder","^^^
up
^^^","POST",
array("id"=>$row["id"],"reorder_by"=>-1),false/*newwin*/,"family_$family_id").$r)
array("id"=>$row["id"],"reorder_by"=>-1),false/*newwin*/,"family_$family_id").$r)
- .$l.formbutton("confirm","
Smaz zaznam"
,"GET",
+ .$l.formbutton("confirm","
Delete entry"
,"GET",
array("id"=>$row["id"],"confirming"=>"delete"),true/*newwin*/).$r
array("id"=>$row["id"],"confirming"=>"delete"),true/*newwin*/).$r
- .$l.formbutton("edit" ,"Edit
uj zaznam"
,"GET",
+ .$l.formbutton("edit" ,"Edit
entry"
,"GET",
array("id"=>$row["id"]),true/*newwin*/).$r
.(mysql_num_rows($result)<=1 ? "" :
array("id"=>$row["id"]),true/*newwin*/).$r
.(mysql_num_rows($result)<=1 ? "" :
- $l.formbutton("confirm","I
zoluj zaznam
","GET",
+ $l.formbutton("confirm","I
solate entry
","GET",
array("id"=>$row["id"],"confirming"=>"isolate"),true/*newwin*/).$r)
.($order+1 >= mysql_num_rows($result) ? "" :
array("id"=>$row["id"],"confirming"=>"isolate"),true/*newwin*/).$r)
.($order+1 >= mysql_num_rows($result) ? "" :
- $l.formbutton("reorder","vvv
Dolu
vvv" ,"POST",
+ $l.formbutton("reorder","vvv
down
vvv" ,"POST",
array("id"=>$row["id"],"reorder_by"=>+1),false/*newwin*/,"family_$family_id").$r)
."</table></td></tr></table></a>\n"
);
array("id"=>$row["id"],"reorder_by"=>+1),false/*newwin*/,"family_$family_id").$r)
."</table></td></tr></table></a>\n"
);