Changeset 604
- Timestamp:
- 07/18/08 23:36:22 (5 years ago)
- Location:
- application.register
- Files:
-
- 1 added
- 5 modified
-
de-informal.xml (modified) (1 diff)
-
de.xml (modified) (1 diff)
-
en.xml (modified) (1 diff)
-
files/lib/system/event/listener/ApplicationRegisterListener.class.php (modified) (1 diff)
-
options.xml (added)
-
package.xml (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
application.register/de-informal.xml
r498 r604 5 5 <item name="wbb.index.application.register.info"><![CDATA[{if $count == 1}Du hast noch eine unbearbeitete Bewerbung fÃŒr eine Benutzergruppe.<br/><a href="index.php?page=UserGroupLeader{@SID_ARG_2ND}">Direkt zur Bewerbung...</a>{/if}{if $count > 1}Du hast noch unbearbeitete Bewerbungen fÃŒr Benutzergruppen.<br/><a href="index.php?page=UserGroupLeader{@SID_ARG_2ND}">Direkt zu den Bewerbungen...</a>{/if}]]></item> 6 6 </category> 7 <category name="wcf.acp.option"> 8 <item name="wcf.acp.option.application_info_enable"><![CDATA[Bewerbungshinweis-Info-Box anzeigen]]></item> 9 <item name="wcf.acp.option.application_info_enable.description"><![CDATA[Ist diese Option aktiviert, wird dem Gruppenleiter einer Benutzergruppe eine Info-Box angezeigt, die auf eine neue Bewebung hinweist. Sehen kann die Box nur der Gruppenleiter der jeweiligen Benutzergruppe.]]></item> 10 </category> 7 11 </language> -
application.register/de.xml
r498 r604 5 5 <item name="wbb.index.application.register.info"><![CDATA[{if $count == 1}Es ist eine unbearbeitete Bewerbung fÃŒr eine Benutzergruppe vorhanden.<br/><a href="index.php?page=UserGroupLeader{@SID_ARG_2ND}">Direkt zur Bewerbung...</a>{/if}{if $count > 1}Es sind noch unbearbeitete Bewerbungen fÃŒr Benutzergruppen vorhanden.<br/><a href="index.php?page=UserGroupLeader{@SID_ARG_2ND}">Direkt zu den Bewerbungen...</a>{/if}]]></item> 6 6 </category> 7 <category name="wcf.acp.option"> 8 <item name="wcf.acp.option.application_info_enable"><![CDATA[Bewerbungshinweis-Info-Box anzeigen]]></item> 9 <item name="wcf.acp.option.application_info_enable.description"><![CDATA[Ist diese Option aktiviert, wird dem Gruppenleiter einer Benutzergruppe eine Info-Box angezeigt, die auf eine neue Bewebung hinweist. Sehen kann die Box nur der Gruppenleiter der jeweiligen Benutzergruppe.]]></item> 10 </category> 7 11 </language> -
application.register/en.xml
r503 r604 3 3 4 4 <category name="wbb.index"> 5 <item name="wbb.index.application.register.info"><![CDATA[{if $count == 1}There is one unattended application for a user group.<br/><a href="index.php?page=UserGroupLeader{@SID_ARG_2ND}">Go to the application management...</a>{/if}{if $count > 1}There are unattended applications for user groups.<br/><a href="index.php?page=UserGroupLeader{@SID_ARG_2ND}">Go to the application management...</a>{/if}]]></item> 5 <item name="wbb.index.application.register.info"><![CDATA[{if $count == 1}An unattended application exists for a user group.<br/><a href="index.php?page=UserGroupLeader{@SID_ARG_2ND}">Go to the application...</a>{/if}{if $count > 1}Unattended applications exist for user groups.<br/><a href="index.php?page=UserGroupLeader{@SID_ARG_2ND}">Go to the applications...</a>{/if}]]></item> 6 </category> 7 <category name="wcf.acp.option"> 8 <item name="wcf.acp.option.application_info_enable"><![CDATA[Show infobox on user group applications]]></item> 9 <item name="wcf.acp.option.application_info_enable.description"><![CDATA[If enabled, an information box will be shown to the group leaders on new applications for their user groups.]]></item> 6 10 </category> 7 11 </language> -
application.register/files/lib/system/event/listener/ApplicationRegisterListener.class.php
r510 r604 16 16 */ 17 17 public function execute($eventObj, $className, $eventName) { 18 $sql = "SELECT wcf".WCF_N."_group_application.* FROM wcf".WCF_N."_group_application 19 LEFT JOIN wcf".WCF_N."_group_application_notification 20 ON wcf".WCF_N."_group_application.applicationID = wcf".WCF_N."_group_application_notification.applicationID 21 AND wcf".WCF_N."_group_application_notification.userID = ".WCF::getUser()->userID." 22 WHERE wcf".WCF_N."_group_application_notification.applicationID IS NULL 23 AND wcf".WCF_N."_group_application.groupID IN ( 24 SELECT groupID 25 FROM wcf".WCF_N."_group_leader 26 WHERE userID = ".WCF::getUser()->userID." 27 ) 28 AND wcf".WCF_N."_group_application.applicationStatus = 0 29 "; 18 19 if (APPLICATION_INFO_ENABLE == 1) { 20 21 $sql = "SELECT wcf".WCF_N."_group_application.* FROM wcf".WCF_N."_group_application 22 LEFT JOIN wcf".WCF_N."_group_application_notification 23 ON wcf".WCF_N."_group_application.applicationID = wcf".WCF_N."_group_application_notification.applicationID 24 AND wcf".WCF_N."_group_application_notification.userID = ".WCF::getUser()->userID." 25 WHERE wcf".WCF_N."_group_application_notification.applicationID IS NULL 26 AND wcf".WCF_N."_group_application.groupID IN ( 27 SELECT groupID 28 FROM wcf".WCF_N."_group_leader 29 WHERE userID = ".WCF::getUser()->userID." 30 ) 31 AND wcf".WCF_N."_group_application.applicationStatus = 0 32 "; 30 33 31 $res = WCF::getDB()->sendQuery($sql);32 $count = WCF::getDB()->countRows($res);34 $res = WCF::getDB()->sendQuery($sql); 35 $count = WCF::getDB()->countRows($res); 33 36 34 if ($count >= 1){35 //Hier werden die Variablen im Template registriert36 WCF::getTPL()->assign(array(37 if ($count >= 1){ 38 //Hier werden die Variablen im Template registriert 39 WCF::getTPL()->assign(array( 37 40 'count' => $count, 38 )); 39 //Hier wird das Template in dem Platzhalter userMessages integriert. 40 if (strpos(WCF::getTPL()->get('userMessages'), WCF::getTPL()->fetch('applicationRegister')) === false) { 41 WCF::getTPL()->append('userMessages', WCF::getTPL()->fetch('applicationRegister')); 41 )); 42 //Hier wird das Template in dem Platzhalter userMessages integriert. 43 if (strpos(WCF::getTPL()->get('userMessages'), WCF::getTPL()->fetch('applicationRegister')) === false) { 44 WCF::getTPL()->append('userMessages', WCF::getTPL()->fetch('applicationRegister')); 45 } 42 46 } 43 44 47 } 45 46 48 } 47 48 49 } 49 50 ?> -
application.register/package.xml
r502 r604 8 8 <packagedescription>Mit diesem PlugIn wird auf der Startseite ein Hinweis fÃŒr den Gruppenleader erscheinen, falls es neue Bewerbungen fÃŒr eine Benutzergruppe gibt.</packagedescription> 9 9 <packageurl><![CDATA[http://www.mdman.de]]></packageurl> 10 <version>1.0. 5</version>11 <date>2008-0 5-09</date>10 <version>1.0.6</version> 11 <date>2008-07-18</date> 12 12 <plugin>com.woltlab.wcf</plugin> 13 13 </packageinformation> … … 19 19 20 20 <requiredpackages> 21 <requiredpackage minversion="3.0. 4">com.woltlab.wbb</requiredpackage>21 <requiredpackage minversion="3.0.7">com.woltlab.wbb</requiredpackage> 22 22 </requiredpackages> 23 23 … … 30 30 <eventlistener>eventlistener.xml</eventlistener> 31 31 <sql>install.sql</sql> 32 <options>options.xml</options> 32 33 </instructions> 33 34 34 35 <instructions type="update" fromversion="1.0.0"> 35 36 <files>files.tar</files> 37 <languages languagecode="de">de.xml</languages> 38 <languages languagecode="de-informal">de-informal.xml</languages> 36 39 <languages languagecode="en">en.xml</languages> 37 40 <templates>templates.tar</templates> 38 41 <sql>install.sql</sql> 39 42 <eventlistener>eventlistener.xml</eventlistener> 43 <options>options.xml</options> 40 44 </instructions> 41 45 42 46 <instructions type="update" fromversion="1.0.1"> 43 47 <files>files.tar</files> 48 <languages languagecode="de">de.xml</languages> 49 <languages languagecode="de-informal">de-informal.xml</languages> 44 50 <languages languagecode="en">en.xml</languages> 45 51 <templates>templates.tar</templates> 46 52 <eventlistener>eventlistener.xml</eventlistener> 47 53 <sql>install.sql</sql> 54 <options>options.xml</options> 48 55 </instructions> 49 56 … … 52 59 <eventlistener>eventlistener.xml</eventlistener> 53 60 <sql>install.sql</sql> 61 <languages languagecode="de">de.xml</languages> 62 <languages languagecode="de-informal">de-informal.xml</languages> 54 63 <languages languagecode="en">en.xml</languages> 64 <options>options.xml</options> 55 65 </instructions> 56 66 57 67 <instructions type="update" fromversion="1.0.3"> 68 <languages languagecode="de">de.xml</languages> 69 <languages languagecode="de-informal">de-informal.xml</languages> 58 70 <languages languagecode="en">en.xml</languages> 59 71 <files>files.tar</files> 60 72 <eventlistener>eventlistener.xml</eventlistener> 61 73 <sql>install.sql</sql> 74 <options>options.xml</options> 62 75 </instructions> 63 76 64 77 <instructions type="update" fromversion="1.0.4"> 78 <languages languagecode="de">de.xml</languages> 79 <languages languagecode="de-informal">de-informal.xml</languages> 80 <languages languagecode="en">en.xml</languages> 65 81 <files>files.tar</files> 66 82 <eventlistener>eventlistener.xml</eventlistener> 67 83 <sql>install.sql</sql> 84 <options>options.xml</options> 85 </instructions> 86 87 <instructions type="update" fromversion="1.0.5"> 88 <languages languagecode="de">de.xml</languages> 89 <languages languagecode="de-informal">de-informal.xml</languages> 90 <languages languagecode="en">en.xml</languages> 91 <files>files.tar</files> 92 <options>options.xml</options> 68 93 </instructions> 69 94
