Thread 2

    Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

    • just testing :D

      PHP-Quellcode: 15

      1. public function readParameters() {
      2. parent::readParameters();
      3. if (WCF::getUser()->userID || WCF::getSession()->getVar('captchaDone')) {
      4. $this->useCaptcha = false;
      5. }
      6. if(isset($_REQUEST['pshorty'])) {
      7. $this->project = new Project(null, $_REQUEST['pshorty']);
      8. $this->project->enter();
      9. #$this->project->checkPermission('issue.create');
      10. }
      11. if(isset($_REQUEST['itemID'])) {
      12. $this->issue = new IssueEditor($this->project->getId(), intval($_REQUEST['itemID']));
      13. if(!$this->issue->getId()) throw new NamedUserException("Unbekannte Fall-ID");
      14. $this->project->checkPermission('issue.edit');
      15. }
      16. if(isset($_REQUEST['typeID'])) $this->typeID = intval($_REQUEST['typeID']);
      17. }
      18. public function readData() {
      19. parent::readData();
      20. if(!count($_POST) && $this->issue) {
      21. $this->issuename = $this->issue->getName();
      22. $this->description = $this->issue->description;
      23. $this->sourcecode = $this->issue->sourcecode;
      24. $this->statusID = $this->issue->statusID;
      25. $this->packageID = $this->issue->packageID;
      26. $this->versionID = $this->issue->versionID;
      27. $this->releaseVersionID = $this->issue->releaseVersionID;
      28. $this->typeID = $this->issue->typeID;
      29. $this->duplicateNr = $this->issue->duplicateNr;
      30. $this->username = $this->issue->username;
      31. }
      32. if($this->project->hasModule('versions')) {
      33. $result = WCF::getDB()->sendQuery("SELECT versionID, versionString, versionname FROM cd".CD_N."_version WHERE packageID = '".($this->packageID ? $this->packageID : 0)."' AND projectID = '".$this->project->getId()."' ORDER BY versionString ASC");
      34. while ($row = WCF::getDB()->fetchArray($result)) {
      35. $this->versionList[] = new Version(null, $row);
      36. }
      37. Version::sortVersions($this->versionList);
      38. }
      39. $result = WCF::getDB()->sendQuery("SELECT * FROM cd".CD_N."_issue_status WHERE projectID = '".$this->project->getId()."' ORDER BY statusID");
      40. while ($row = WCF::getDB()->fetchArray($result)) {
      41. $this->statusList[] = $row;
      42. }
      43. $result = WCF::getDB()->sendQuery("SELECT * FROM cd".CD_N."_issue_type WHERE projectID = '".$this->project->getId()."' ORDER BY typeID");
      44. while ($row = WCF::getDB()->fetchArray($result)) {
      45. $this->typeList[] = $row;
      46. }
      47. $result = WCF::getDB()->sendQuery("SELECT issueID, mynr, subject FROM cd".CD_N."_issue WHERE projectID = '".$this->project->getId()."' ORDER BY mynr DESC");
      48. while ($row = WCF::getDB()->fetchArray($result)) {
      49. if($this->issue && $this->issue->getNr() == $row['mynr']) continue;
      50. $this->issueList[] = $row;
      51. }
      52. $this->packageList = Package::getPackages($this->project->getId());
      53. if($this->typeID === null) {
      54. if(count($this->typeList) <= 0) $this->typeID = 0;
      55. else if(count($this->typeList) == 1) $this->typeID = $this->typeList[0]['typeID'];
      56. else $this->templateName = 'issueType';
      57. }
      58. else {
      59. $this->type = WCF::getDB()->getFirstRow("SELECT * FROM cd".CD_N."_issue_type WHERE typeID = '".$this->typeID."' AND projectID = '".$this->project->getId()."'");
      60. if(!$this->type) throw new NamedUserException("Unbekannter Falltyp");
      61. }
      62. }
      Alles anzeigen
    • Testumfrage 2
      1.  
        Option 1 (1) 50%
      2.  
        Option 2 (1) 50%
      3.  
        Option 3 (0) 0%
      Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.

      Boohja schrieb:

      Nummer drei

      So siehts nämlich aus ^^
      [ol]
      [li]alpha[/li]
      [li]beta[/li]
      [li]gamma[/li]
      [/ol]
      Und nun normal:
      [ul]
      [li]alpha[/li]
      [li]beta[/li]
      [li]gamma[/li]
      [/ul]