Surfbar continued:
authorRoland Häder <roland@mxchange.org>
Fri, 28 Nov 2008 00:44:54 +0000 (00:44 +0000)
committerRoland Häder <roland@mxchange.org>
Fri, 28 Nov 2008 00:44:54 +0000 (00:44 +0000)
- Missing template added for deleting URLs in surfbar by members
- Deletion mails extended
- Missing "action execute function" added
- Some minor fixes

.gitattributes
inc/databases.php
inc/language/surfbar_de.php
inc/libs/surfbar_functions.php
templates/de/emails/admin/admin_surfbar_url_deleted.tpl
templates/de/emails/member/member_surfbar_url_deleted.tpl
templates/de/html/member/member_surfbar_delete_action_form.tpl [new file with mode: 0644]
templates/de/html/member/member_surfbar_edit_action_form.tpl
theme/desert/css/general.css

index 471c8fa..0721643 100644 (file)
@@ -1394,6 +1394,7 @@ templates/de/html/member/member_support_form.tpl -text
 templates/de/html/member/member_surfbar_book_dynamic.tpl -text
 templates/de/html/member/member_surfbar_book_static.tp -text
 templates/de/html/member/member_surfbar_book_static.tpl -text
+templates/de/html/member/member_surfbar_delete_action_form.tpl -text
 templates/de/html/member/member_surfbar_edit_action_form.tpl -text
 templates/de/html/member/member_surfbar_link.tpl -text
 templates/de/html/member/member_surfbar_list.tpl -text
index d6dbd0e..2038c01 100644 (file)
@@ -114,7 +114,7 @@ define('USAGE_BASE', "usage");
 define('SERVER_URL', "http://www.mxchange.org");
 
 // This current patch level
-define('CURR_SVN_REVISION', "571");
+define('CURR_SVN_REVISION', "572");
 
 // Take a prime number which is long (if you know a longer one please try it out!)
 define('_PRIME', 591623);
index 26ab964..a4ec015 100644 (file)
@@ -199,6 +199,10 @@ define('MEMBER_SURFBAR_ACTION_BOOKNOW_SUBMIT', "Jetzt buchen");
 define('MEMBER_SURFBAR_ACTION_PAUSE_SUBMIT', "Anhalten");
 define('MEMBER_SURFBAR_ACTION_UNPAUSE_SUBMIT', "Fortfahren");
 
+// Member actions - "now" submit buttons
+define('MEMBER_SURFBAR_ACTION_DELETE_NOW_SUBMIT', "Jetzt l&ouml;schen");
+define('MEMBER_SURFBAR_ACTION_EDIT_NOW_SUBMIT', "Jetzt &auml;ndern");
+
 // Member actions - button titles
 define('MEMBER_SURFBAR_ACTION_RETREAT_TITLE', "Nehmen Sie hiermit Ihre Buchung wieder zur&uuml;ck, falls Sie diese doch nicht bewerben wollten.");
 define('MEMBER_SURFBAR_ACTION_FRAMETEST_TITLE', "Testen Sie die Seite auf Framekiller hin, diese sind in unserer Surfbar grunds&auml;tzlich nicht gestattet.");
index 972b196..99c1b30 100644 (file)
@@ -428,6 +428,11 @@ function SURFBAR_MEMBER_EXECUTE_EDIT_ACTION ($urlData) {
        // Not updated
        return false;
 }
+// "Execute delete" function: Does nothing...
+function SURFBAR_MEMBER_EXECUTE_DELETE_ACTION ($urlData) {
+       // Nothing special to do (see above function for such "special actions" to perform)
+       return true;
+}
 //
 // -----------------------------------------------------------------------------
 //                           Self-maintenance functions
index fa78ec5..db85400 100644 (file)
@@ -1,6 +1,6 @@
 {--HELLO_ADMIN--},
 
-eines unserer Mitglieder hat soeben seine URL-Buchung zur&uuml;ckgezogen.
+eines unserer Mitglieder hat soeben seine URL-Buchung zur&uuml;ckgezogen bzw. gel&oum;scht.
 
 Hier sind alle Daten dazu:
 ------------------------------------------
index cba33e5..c535bca 100644 (file)
@@ -1,6 +1,6 @@
 Hallo $content[surname] $content[family],,
 
-Sie haben soeben eine in unserer Surfbar gebuchte URL zur&uuml;ckgenommen.
+Sie haben soeben eine in unserer Surfbar gebuchte URL zur&uuml;ckgenommen bzw. gel&ouml;scht.
 
 Hier sind alle Daten dazu:
 ------------------------------------------
diff --git a/templates/de/html/member/member_surfbar_delete_action_form.tpl b/templates/de/html/member/member_surfbar_delete_action_form.tpl
new file mode 100644 (file)
index 0000000..684da34
--- /dev/null
@@ -0,0 +1,36 @@
+<form id="delete" action="{!URL!}/modules.php?module=login&amp;what=surfbar_list" method="post">
+<div class="member_table dashed" style="width:600px;margin-top:10px">
+       <div class="member_title2 bottom2" style="padding-top:5px;padding-bottom:5px">
+               <strong>URL in Surfbar l&ouml;schen:</strong>
+       </div>
+
+       <div class="member_input" style="padding-top:5px;padding-bottom:5px">
+               Gebuchte URL: <strong>$content[url]</strong>
+       </div>
+
+       <div class="member_input" style="padding-top:5px;padding-bottom:5px">
+               Angemeldet: <strong>$content[registered]</strong>
+       </div>
+
+       <div class="member_input" style="padding-top:5px;padding-bottom:5px">
+               Gesamtaufrufe: <strong>$content[views_total]</strong>
+       </div>
+
+       <div class="member_input" style="padding-top:5px;padding-bottom:5px">
+               Aufrufe begrenzt auf: <strong>$content[views_max]</strong> (0=Unbegrenzt)
+       </div>
+
+       <div class="member_title2 top2" style="padding-top:5px;padding-bottom:5px">
+               <input type="reset" class="member_reset" value="{--CLEAR_FORM--}" />
+               <input type="hidden" name="id" value="$content[id]" />
+               <input type="hidden" name="action" value="delete" />
+               <input type="hidden" name="execute" value="1" />
+               <input type="submit" class="member_submit" name="ok" value="{--MEMBER_SURFBAR_ACTION_DELETE_NOW_SUBMIT--}" />
+       </div>
+</div>
+</form>
+
+<div class="note">
+       <strong>Hinweis:</strong> Irt&uuml;mlich gel&ouml;schte URLs k&ouml;nnen nur
+       durch unsere Administratoren wiederhergestellt werden.
+</div>
index 9c53c92..8c7036c 100644 (file)
@@ -23,7 +23,7 @@
                <input type="hidden" name="id" value="$content[id]" />
                <input type="hidden" name="action" value="edit" />
                <input type="hidden" name="execute" value="1" />
-               <input type="submit" class="member_submit" name="ok" value="{--MEMBER_SURFBAR_ACTION_EDIT_SUBMIT--}" />
+               <input type="submit" class="member_submit" name="ok" value="{--MEMBER_SURFBAR_ACTION_EDIT_NOW_SUBMIT--}" />
        </div>
 </div>
 
index 2d788a9..a552174 100644 (file)
@@ -233,8 +233,7 @@ DIV.admin_note {
 
 .admin_normal, .guest_normal, .member_normal {
        border-style            : solid;
-       border                  : solid 1px;
-       border-color            : #880000;
+       border                          : solid 1px #880000;
        background-color        : #DDDDAA;
 }