Skip to content

Commit

Permalink
Just to make you happy: [add] and [edit]
Browse files Browse the repository at this point in the history
This is a temporary solution only, really. So damn outdated to use image text buttons…
  • Loading branch information
slackero committed Jan 25, 2017
1 parent c555f03 commit 8135ba1
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 49 deletions.
Binary file added img/button/add_22x11.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/button/add_22x11_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/button/edit_22x11_0.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 11 additions & 11 deletions include/inc_lib/admin.functions.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ function struct_levellist($struct, $key, $counter, $copy_article_content, $cut_a
$a .= 'onmouseover="Tip(\''.$info.'\');" onmouseout="UnTip()" alt=""';

$a .= "></td>\n";
$a .= "<td><img src=\"img/leer.gif\" width=\"2\" height=\"15\" alt=\"\" /></td>\n";
$a .= "<td><img src=\"img/leer.gif\" width=\"2\" height=\"15\" alt=\"\" /></td>";
$a .= '<td class="dir" width="95%"><strong><a href="';
$a .= rel_url(array('phpwcms-preview'=>1), array(), empty($struct[$key]["acat_alias"]) ? 'id='.$struct[$key]["acat_id"] : $struct[$key]["acat_alias"]);
$a .= '" target="_blank" title="'.$BL['be_func_struct_preview'].': '.$an.'">';
$a .= $an . "</a></strong></td>\n</tr>\n</table></td>\n<td width=\"77\" nowrap=\"nowrap\">";
$a .= $an . '</a></strong></td></tr></table></td><td class="nowrap" nowrap="nowrap">';

$a .= listmode_edits($listmode, $struct, $key, $an, $copy_article_content, $cut_article_content, $copy_article, $copy_id, $cut_article, $cut_id, $forbid_cut, $forbid_copy, $count_row, $child_sort);

Expand Down Expand Up @@ -291,14 +291,14 @@ function struct_articlelist($struct_id, $counter, $copy_article_content, $cut_ar
$a .= '<td class="dir" width="95%"><a href="';
$a .= rel_url(array('phpwcms-preview'=>1), array(), empty($article[$akey]["article_alias"]) ? 'aid='.$article[$akey]["article_id"] : $article[$akey]["article_alias"]);
$a .= '" target="_blank" title="'.$BL['be_func_struct_preview'].': '.$at.'">';
$a .= $at."</a></td>\n</tr>\n</table></td>\n<td width=\"77\" nowrap=\"nowrap\">";
$a .= $at.'</a></td></tr></table></td><td width="88" nowrap="nowrap" class="nowrap">';

if($article[$akey]["article_uid"] == $_SESSION["wcs_user_id"] || $_SESSION["wcs_user_admin"]) {
$a .= "<a href=\"phpwcms.php?do=articles&amp;p=2&amp;s=1&amp;id=".$article[$akey]["article_id"];
$a .= "\" title=\"".$BL['be_func_struct_edit']." \n[".$at."]\">";
$a .= "<img src=\"img/button/edit_11x11.gif\" width=\"11\" height=\"11\" border=\"0\" alt=\"\"></a>";
$a .= "<img src=\"img/button/edit_22x11.gif\" width=\"22\" height=\"11\" border=\"0\" alt=\"\"></a>";
} else {
$a .= "<img src=\"img/button/edit_11x11_0.gif\" width=\"11\" height=\"11\" border=\"0\" alt=\"\" />";
$a .= "<img src=\"img/button/edit_22x11_0.gif\" width=\"22\" height=\"11\" border=\"0\" alt=\"\" />";
}

if($cut_article != $article[$akey]["article_id"] && !$cut_article_content) {
Expand Down Expand Up @@ -453,7 +453,7 @@ function struct_articlecontentlist(& $article, $akey, $copy_article_content, $cu
$gk = 14+14+29+(14*($counter-1));
$a .= "<td width=\"".$gk."\"><img src=\"img/leer.gif\" width=\"".$gk."\" height=\"1\" alt=\"\" /></td>"; //$counter-1
$a .= "<td width=\"13\"><img src=\"img/symbole/content_9x11.gif\" width=\"9\" height=\"11\" border=\"0\" alt=\"\" onmouseover=\"".$info."\" /></td>";
$a .= "<td class=\"v09\" style=\"color:#727889;padding:1px 0 1px 0;width:".(538-$gk-14-15-77-98)."px;\" onmouseover=\"".$info."\">";
$a .= "<td class=\"v09\" style=\"color:#727889;padding:1px 0 1px 0;width:".(538-$gk-14-15-88-98)."px;\" onmouseover=\"".$info."\">";

$ab = '[ID:'.$article_content["acontent_id"].'] ';
$ab .= $GLOBALS["wcs_content_type"][$article_content["acontent_type"]];
Expand All @@ -466,16 +466,16 @@ function struct_articlecontentlist(& $article, $akey, $copy_article_content, $cu
$a .= "</td>";
$a .= "<td width=\"16\"><img src=\"img/symbole/block.gif\" width=\"9\" height=\"11\" border=\"0\" alt=\"\" style=\"margin:0 3px 0 3px;\" /></td>";
$a .= "<td class=\"v09\" style=\"color:#727889;\" width=\"102\">".html(' {'.$article_content['acontent_block'].'} ')."</td>";
$a .= '<td nowrap="nowrap" style="padding:1px 0 1px 0;width:77px;white-space:nowrap;" onmouseover="'.$info.'">';
$a .= '<td nowrap="nowrap" style="padding:1px 0 1px 0;width:88px;white-space:nowrap;" onmouseover="'.$info.'">';

$at = ' '.$ab.' ';

if($article[$akey]["article_uid"] == $_SESSION["wcs_user_id"] || $_SESSION["wcs_user_admin"]) {
$a .= "<a href=\"phpwcms.php?do=articles&amp;p=2&amp;s=1&amp;aktion=2&amp;id=".$article[$akey]["article_id"]."&amp;acid=".$article_content["acontent_id"];
$a .= "\" title=\"".$GLOBALS["BL"]['be_func_content_edit']." [".$at."]\">";
$a .= "<img src=\"img/button/edit_11x11.gif\" width=\"11\" height=\"11\" border=\"0\" alt=\"\" /></a>";
$a .= "<img src=\"img/button/edit_22x11.gif\" width=\"22\" height=\"11\" border=\"0\" alt=\"\" /></a>";
} else {
$a .= "<img src=\"img/button/edit_11x11_0.gif\" width=\"11\" height=\"11\" border=\"0\" alt=\"\" />";
$a .= "<img src=\"img/button/edit_22x11_0.gif\" width=\"22\" height=\"11\" border=\"0\" alt=\"\" />";
}

if($cut_article_content) {
Expand Down Expand Up @@ -558,7 +558,7 @@ function listmode_edits($listmode, $struct, $key, $an, $copy_article_content, $c

case 0: $a .= "<a href=\"phpwcms.php?do=articles&amp;p=1&amp;struct=".$struct[$key]["acat_id"]."\" ";
$a .= "title=\"".$GLOBALS['BL']['be_func_struct_new_article']." \n[".$an."]\">";
$a .= "<img src=\"img/button/add_11x11.gif\" width=\"11\" height=\"11\" border=\"0\" alt=\"\" /></a>";
$a .= "<img src=\"img/button/add_22x11.gif\" width=\"22\" height=\"11\" border=\"0\" alt=\"\" /></a>";
if($cut_article) { // Cut
$a .= '<a href="include/inc_act/act_structure.php?do=3'.'%7C'.$cut_article.'%7C';
$a .= $struct[$key]["acat_id"]."\" title=\"".$GLOBALS['BL']['be_func_struct_paste_article']." \n[".$an;
Expand All @@ -581,7 +581,7 @@ function listmode_edits($listmode, $struct, $key, $an, $copy_article_content, $c
break;

case 1: $a .= "<a href=\"phpwcms.php?do=admin&amp;p=6&amp;struct=".$struct[$key]["acat_id"]."&amp;sort=".$child_sort."\" title=\"";
$a .= $GLOBALS['BL']['be_func_struct_insert_level']." [".$an."]\"><img src=\"img/button/add_11x11.gif\" width=\"11\" height=\"11\" border=\"0\" alt=\"\" /></a>";
$a .= $GLOBALS['BL']['be_func_struct_insert_level']." [".$an."]\"><img src=\"img/button/add_22x11.gif\" width=\"22\" height=\"11\" border=\"0\" alt=\"\" /></a>";

if($cut_id) {
if($cut_id != $struct[$key]["acat_id"] && !$forbid_cut) {
Expand Down
2 changes: 1 addition & 1 deletion include/inc_lib/structure.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function struct_list ($struct_id, $dbcon, $counter=0) {
while($row = mysql_fetch_array($result)) {
echo "<tr>\n<td nowrap=\"nowrap\"><img src=\"img/leer.gif\" width=\"15\" height=\"11\"></td>\n";
echo "<td class=\"dir\">".html($row["acat_name"])."</td>\n";
echo "<td><img src=\"img/button/add_11x11.gif\" width=\"11\" height=\"11\">";
echo "<td><img src=\"img/button/add_22x11.gif\" width=\"22\" height=\"11\">";
echo "<img src=\"img/button/edit_22x11.gif\" width=\"22\" height=\"11\">";
echo "<img src=\"img/button/sort_0_1.gif\" width=\"11\" height=\"11\">";
echo "<img src=\"img/button/sort_1_1.gif\" width=\"11\" height=\"11\">";
Expand Down
30 changes: 11 additions & 19 deletions include/inc_tmpl/admin.filecat.tmpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,13 @@
$_SESSION["fcatlist"][intval($open_id)] = intval($open_value);
}
?>
<table width="538" border="0" cellpadding="0" cellspacing="0" summary="">
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="">
<tr><td colspan="2" class="title"><?php echo $BL['be_admin_fcat_title'] ?></td></tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="4" /></td></tr>
<?php
if(isset($_GET["fcatid"])) {
?>
<tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td>
</tr>
<tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr>
<tr bgcolor="#F0F2F4"><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="10" /></td>
</tr>
<?php
Expand Down Expand Up @@ -251,18 +250,14 @@
</tr>
</table></td>
</tr>
<tr bgcolor="#F0F2F4"><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="15" /></td>
</tr>
<tr bgcolor="#F0F2F4"><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="15" /></td></tr>
</form>
<?php
} //Ende Anzeige Key Name Formular


?>
<tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td>
</tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td>
</tr>
<tr><td colspan="2" class="rowspacer7x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
<?php
$sql = "SELECT * FROM ".DB_PREPEND."phpwcms_filecat WHERE fcat_deleted=0 ORDER BY fcat_sort, fcat_name";
if($result = mysql_query($sql, $db) or die("error while browsing file categories")) {
Expand All @@ -282,10 +277,10 @@
echo "<td><strong".(($row["fcat_needed"])?" style=\"color:#FF3300\"":"").">".html($row["fcat_name"])."</strong> [".$row["fcat_sort"]."]</td>\n";
echo "</tr>\n</table></td>".LF;

echo "<td width=\"55\">";
echo '<td width="66" class="nowrap">';

echo "<a href=\"phpwcms.php?do=admin&p=7&fkeyid=0&cid=".$row["fcat_id"]."\" title=\"".$BL['be_admin_fcat_addkey']."\">";
echo "<img src=\"img/button/add_11x11.gif\" width=\"11\" height=\"11\" border=\"0\"></a>";
echo "<img src=\"img/button/add_22x11.gif\" width=\"22\" height=\"11\" border=\"0\"></a>";

echo "<a href=\"phpwcms.php?do=admin&p=7&fcatid=".$row["fcat_id"]."\" title =\"".$BL['be_admin_fcat_editcat']."\">";
echo "<img src=\"img/button/edit_22x11.gif\" width=\"22\" height=\"11\" border=\"0\"></a>";
Expand All @@ -312,7 +307,7 @@
echo "<td><img src=\"img/leer.gif\" width=\"2\" height=\"15\"></td>\n";
echo "<td>".html($krow["fkey_name"])." [".$krow["fkey_sort"]."]</td>\n";
echo "</tr>\n</table></td>\n";
echo "<td><img src=\"img/leer.gif\" width=\"11\" height=\"11\">";
echo '<td class="nowrap"><img src="img/leer.gif" width="22" height="11">';

echo "<a href=\"phpwcms.php?do=admin&p=7&fkeyid=".$krow["fkey_id"]."&cid=".$row["fcat_id"]."\" title =\"".$BL['be_admin_fcat_editkey']."\">";
echo "<img src=\"img/button/edit_22x11.gif\" width=\"22\" height=\"11\" border=\"0\"></a>";
Expand All @@ -332,14 +327,11 @@
mysql_free_result($result);
}
?>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td>
</tr>
<tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td>
</tr>
<tr>
<tr><td colspan="2" class="rowspacer7x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
<tr>
<td><img src="img/leer.gif" alt="" width="483" height="1" /></td>
<td><img src="img/leer.gif" alt="" width="55" height="5" /></td>
</tr>
<td><img src="img/leer.gif" alt="" width="66" height="5" /></td>
</tr>
<tr>
<td colspan="2"><form action="phpwcms.php?do=admin&amp;p=7&amp;fcatid=0" method="post">
<input type="submit" value="<?php echo $BL['be_admin_fcat_addcat'] ?>" class="button" title="<?php echo $BL['be_admin_fcat_addcat'] ?>" />
Expand Down
12 changes: 4 additions & 8 deletions include/inc_tmpl/admin.structlist.tmpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@
// ----------------------------------------------------------------


?><table width="538" border="0" cellpadding="0" cellspacing="0" summary="">
?><table width="100%" border="0" cellpadding="0" cellspacing="0" summary="">
<tr><td colspan="2" class="title"><?php echo $BL['be_admin_struct_title'] ?></td></tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="6"></td></tr>
<tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1"></td></tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="4"></td></tr>
<tr><td colspan="2" class="rowspacer7x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="1"></td></tr>
<?php

Expand All @@ -50,7 +48,7 @@
$struct_template = _dbQuery('SELECT template_default, template_name FROM '.DB_PREPEND.'phpwcms_template WHERE template_trash=0 AND template_id='.intval($indexpage['acat_template']));

echo "<tr onmouseover=\"this.bgColor='#CCFF00';\" onmouseout=\"this.bgColor='#FFFFFF';\">";
echo "<td width=\"439\">";
echo "<td width=\"450\">";
echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" summary=\"\"><tr>";
echo '<td nowrap="nowrap">';
echo ($child_count) ? "<a href=\"phpwcms.php?do=admin&amp;p=6&amp;open=0:".(empty($_SESSION["structure"][0])?1:0)."\">" : "";
Expand Down Expand Up @@ -82,7 +80,5 @@
}

?>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5"></td></tr>
<tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1"></td></tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="4"></td></tr>
<tr><td colspan="2" class="rowspacer7x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
</table>
17 changes: 8 additions & 9 deletions include/inc_tmpl/article.structlist.tmpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
//31-03-2005 Fernando Batista -> Copy/Cut Article Content http://fernandobatista.net

?>
<table width="538" border="0" cellpadding="0" cellspacing="0" summary="">
<tr><td colspan="2" class="title"><?php echo $BL['be_article_title'] ?></td></tr>
<tr><td colspan="2" class="title"><img src="img/leer.gif" alt="" width="1" height="4" /></td></tr>
<tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="">

<tr><td colspan="2" class="title"><?php echo $BL['be_article_title'] ?></td></tr>
<tr><td colspan="2" class="rowspacer7x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>

<?php

$listmode = 0;
Expand Down Expand Up @@ -84,7 +84,7 @@
$a .= '<td class="dir" width="97%"><strong>'.$an."</strong></td>\n</tr>\n</table></td>\n";

echo $a;
echo '<td width="77" nowrap="nowrap">';
echo '<td width="77" nowrap="nowrap" class="nowrap">';

$struct[0]["acat_id"] = 0;
$struct[0]["acat_aktiv"] = 1;
Expand All @@ -99,7 +99,6 @@
struct_list(0, $db, $copy_article_content, $cut_article_content, $copy_id, $copy_article, $cut_id, $cut_article, $listmode);
}
?>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="5" /></td></tr>
<tr><td colspan="2"><img src="img/lines/l538_70.gif" alt="" width="538" height="1" /></td></tr>
<tr><td colspan="2"><img src="img/leer.gif" alt="" width="1" height="4" /></td></tr>

<tr><td colspan="2" class="rowspacer7x7"><img src="img/leer.gif" alt="" width="1" height="1" /></td></tr>
</table>
2 changes: 1 addition & 1 deletion include/inc_tmpl/content/cnt51.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
$map_list .= '<td class="v09" width="90%"><strong>'.$map_row['map_title']."</strong></td>\n";
$map_list .= '<td align="right" class="v09"><a href="phpwcms.php?do=articles&amp;p=2&amp;s=1&amp;aktion=2&amp;';
$map_list .= 'id='.$content["aid"].'&amp;acid='.$content["id"].'&amp;locid='.$map_row['map_id'].'">';
$map_list .= '<img src="img/button/edit_11x11.gif" width="11" height="11" border="0" alt=""></a>';
$map_list .= '<img src="img/button/edit_22x13.gif" width="22" height="13" border="0" alt=""></a>';
$map_list .= '<img src="img/leer.gif" width="1" height="1" alt="" border="0">';
$map_list .= '<a href="phpwcms.php?do=articles&amp;p=2&amp;s=1&amp;aktion=2&amp;';
$map_list .= 'id='.$content["aid"].'&amp;acid='.$content["id"].'&amp;dellocid='.$map_row['map_id'];
Expand Down

3 comments on commit 8135ba1

@slackero
Copy link
Owner Author

@slackero slackero commented on 8135ba1 Jan 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Say hello to speaking [add] and [edit] buttons!
article-list

@q23
Copy link
Contributor

@q23 q23 commented on 8135ba1 Jan 25, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

juuuuuuuuuhhhhuuuuuuuuuuuuuuuuuuuuuuuuuuuu. Hello!

@robinsherwood
Copy link

@robinsherwood robinsherwood commented on 8135ba1 Jan 25, 2017 via email

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.