Hallo ich habe joomla 2.5 und das Free modul Projektfork was ich derzeit
umschreibe. Dies ist für mein Chef für die Arbeit für interne nutzung
gedacht um Werkstatt Aufträge anzulegen, Speichern, Drucke etc
und zwar soll diese Seite:
Alles anzeigen
und zwar soll diese php/Java Sript beim Abspeicher immer auf die
Datenbank abspeichern und bei editieren oder so wieder aufrufbar sein
wer mir helfen kann wäre toll
MFg
umschreibe. Dies ist für mein Chef für die Arbeit für interne nutzung
gedacht um Werkstatt Aufträge anzulegen, Speichern, Drucke etc
und zwar soll diese Seite:
Quellcode
- <?php
- /**
- * $Id: form_new_task.php 864 2011-03-21 06:02:52Z angek $
- * @package Projectfork
- * @subpackage Tasks
- * @copyright Copyright (C) 2006-2010 Tobias Kuhn. All rights reserved.
- * @license http://www.gnu.org/licenses/gpl.html GNU/GPL, see LICENSE.php
- *
- * This file is part of Projectfork.
- *
- * Projectfork is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License License as published by
- * the Free Software Foundation, either version 3 of the License,
- * or any later version.
- *
- * Projectfork is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with Projectfork. If not, see <http://www.gnu.org/licenses/gpl.html>.
- **/
- defined( '_JEXEC' ) or die( 'Restricted access' );
- ?>
- <script type="text/javascript">
- function submitbutton(pressbutton)
- {
- if(document.adminForm.title.value == "") {
- alert("<?php echo PFformat::Lang('V_TITLE');?>");
- }
- else {
- <?php if($use_editor && !defined('PF_DEMO_MODE')) { echo $editor->save( 'text' ); } ?>
- submitform( pressbutton );
- }
- }
- function switch_deadline(ch)
- {
- var el = document.getElementById('dealine_table');
- if(ch) {
- el.style.display = "";
- }
- else {
- el.style.display = "none";
- }
- }
- function add_user()
- {
- var template = document.getElementById('user_template').innerHTML;
- var dest = document.getElementById('user_container');
- var div = document.createElement('div');
- div.style.padding = '2px';
- div.innerHTML = template;
- dest.appendChild(div);
- }
- </script>
- <?php echo $form->start();?>
- <a id="pf_top"></a>
- <div class="pf_container">
- <div class="pf_header componentheading">
- <h1><?php echo $ws_title." / "; echo PFformat::Lang('TASKS');?> :: <?php echo PFformat::Lang('NEW');?></h1>
- </div>
- <div class="pf_body">
- <!-- NAVIGATION START-->
- <?php PFpanel::Position('tasks_nav');?>
- <!-- NAVIGATION END -->
- <?php
- jimport('joomla.html.pane');
- $tabs = JPane::getInstance('Tabs');
- echo $tabs->startPane('paneID');
- echo $tabs->startPanel(PFformat::Lang('GENERAL_INFORMATION'), 'pane1');
- ?><form name="createEntityForm" method="post" action="/crm/CreateCommonModule.do" onsubmit="return selectCreateEntityAction('Create');"><input name="fieldname" value="property(CASECF51);property(CASECF7);property(Case Origin);property(Status);property(Subject);property(CASECF11);property(CASECF12);property(Phone);property(Email);property(CASECF81);property(CASECF13);property(CASECF4);property(CASECF1);property(CASECF5);property(CASECF3);property(CASECF8)" type="hidden"><input name="fieldlabel" value="Lieferschein Nr;Angenommen;Case Origin;Status;Subject;Straße;PLZ Ort;Phone;Email;Voraussicht. Fertigstellung;Newsletter;Mit folgendem Zubehör;Es Wurde abgegeben;Sonstiges Zubehür;Passwort;Fach" type="hidden"><input name="fielddatatype" value="I~O;V~M;V~M;V~M;V~M;V~M;V~M;V~M;E~M;D~O;V~M;V~M;V~M;V~M;V~M;V~M" type="hidden"><input name="rowCount" value="1" type="hidden"><input name="dtPtn" value="dd.MM.yyyy" type="hidden"><input name="relmodule" value="null" type="hidden"><input name="isload" value="null" type="hidden"><input name="range_value" value="null" type="hidden"><input name="FROM_INDEX" value="null" type="hidden"><input name="TO_INDEX" value="null" type="hidden"><input name="picklistFields" value="null" type="hidden"><input name="actionRedirect" value="null" type="hidden"><input name="module" value="Cases" type="hidden"><input name="property(module)" value="Cases" type="hidden"><input id="cvid" name="cvid" value="null" type="hidden"><input id="recordNum" name="recordNum" value="null" type="hidden">
- <table border="0" cellpadding="0" cellspacing="0" width="100%"><tbody><tr><td class="Cases-titleIcon"> </td>
- <td class="title hline" style="padding-left:10px" height="30">
- Fall Bearbeiten
- </td><td class="hline" align="right">
- <</td></tr></tbody></table><p></p>
- <input name="singularModule" id="singularModule" value="Case" type="hidden"><div class="bodyText mandatory"></div><input value="create" name="operation" id="operation" type="hidden">
- <table border="0" cellpadding="0" cellspacing="0" width="95%"><tbody><tr><td align="center">
- <div style="float:right;" class="bodyText"></div>
- </td></tr></tbody></table><p></p>
- <div id="secDivCase Information"><table id="secHeadCase Information" cellpadding="0" cellspacing="0" width="95%">
- <tbody width="100%"><tr><td class="secHead">Fall Information</td></tr></tbody></table>
- <table id="secContentCase Information" class="secContent" border="0" cellpadding="0" cellspacing="1" width="95%">
- <tbody width="100%"><tr id="row0_Case Information"><td class="label mandatory" width="25%">*Angenommen:</td>
- <td class="element" width="25%"><input name="uiType_property(CASECF7)" id="uiType_property(CASECF7)" value="2" type="hidden">
- <select name="property(CASECF7)" class="select" style="width:95%" onchange="setDependent(this,false)">
- <option value="">-Keine-</option><option value="Horst Neumann">Horst Neumann</option>
- <option value="Marco Grabitzky">Marco Grabitzky</option><option value="Daniel Kühl">Daniel Kühl</option>
- <option value="Klaas Kuhlmann">Klaas Kuhlmann</option><option value="Marc Peters">Marc Peters</option>
- <option value="Aushilfe">Aushilfe</option></select></td>
- <td class="label" width="25%">Fall Zuständiger:</td>
- <td style="vertical-align:top;padding-top:4" width="25%">
- <input name="uiType_property(Case Owner)" id="uiType_property(Case Owner)" value="8" type="hidden">
- <input class="searchFormatText" name="property(Case Owner)" id="ownerName" readonly="true" type="text">
- <input value="515225000000050003" name="property(ownerId)" id="ownerId" type="hidden"></td></tr><tr id="row1_Case Information">
- <td class="label mandatory" width="25%">*Fall Ursprung:</td><td class="element" width="25%">
- <input name="uiType_property(Case Origin)" id="uiType_property(Case Origin)" value="2" type="hidden">
- <select name="property(Case Origin)" class="select" style="width:95%" onchange="setDependent(this,false)">
- <option value="">-Keine-</option><option value="Kein">Kein</option><option value="Vor Ort">Vor Ort</option>
- <option value="Tel.">Tel.</option></select></td><td class="label mandatory" width="25%">*Status:</td><td class="element" width="25%">
- <input name="uiType_property(Status)" id="uiType_property(Status)" value="2" type="hidden">
- <select name="property(Status)" class="select" style="width:95%" onchange="setDependent(this,false)">
- <option value="">-Keine-</option><option value="Neu" selected="true">Neu</option><option value="In Bearbeitung">In Bearbeitung</option>
- <option value="Unterwegs / RMA">Unterwegs / RMA</option><option value="Abgeschlossen">Abgeschlossen</option>
- <option value="Warten auf Ersatzteile">Warten auf Ersatzteile</option></select></td></tr><tr id="row2_Case Information">
- <td class="label mandatory" width="25%">*Betreff:</td><td class="element" width="10%">
- <input name="uiType_property(Subject)" id="uiType_property(Subject)" value="1" type="hidden">
- <input autocomplete="off" name="property(Subject)" id="property(Subject)" class="textField" style="width:100%" maxlength="300" type="text">
- </td><td class="label" width="25%">Priorität</td>
- <td class="element" width="25%"><input name="uiType_property(Priority)" id="uiType_property(Priority)" value="2" type="hidden">
- <select name="property(Priority)" class="select" style="width:95%" onchange="setDependent(this,false)"><option value="">-Keine-</option>
- <option value="Normal">Normal</option><option value="Sofort Service">Sofort Service</option></select></td></tr><tr id="row3_Case Information">
- <td class="label mandatory" width="25%">*Straße:</td><td class="element" width="25%">
- <input name="uiType_property(CASECF11)" id="uiType_property(CASECF11)" value="1" type="hidden">
- <input name="property(CASECF11)" id="property(CASECF11)" class="textField" style="width:100%" maxlength="20" type="text">
- </td><td class="label" width="25%">Fall Grund:</td><td class="element" width="25%">
- <input name="uiType_property(Case Reason)" id="uiType_property(Case Reason)" value="2" type="hidden">
- <select name="property(Case Reason)" class="select" style="width:95%" onchange="setDependent(this,false)">
- <option value="">-Keine-</option><option value="Hardware Problem">Hardware Problem</option><option value="Viren Problem">Viren Problem</option>
- <option value="Software Problem">Software Problem</option><option value="Unbekanntes Problem">Unbekanntes Problem</option>
- <option value="Neues Problem">Neues Problem</option></select></td></tr><tr id="row4_Case Information">
- <td class="label mandatory" width="25%">*PLZ Ort:</td><td class="element" width="25%">
- <input name="uiType_property(CASECF12)" id="uiType_property(CASECF12)" value="1" type="hidden">
- <input name="property(CASECF12)" id="property(CASECF12)" class="textField" style="width:100%" maxlength="20" type="text">
- </td><td class="label" width="25%">min. Kosten 39,- €:</td><td class="element" width="25%">
- <input name="uiType_property(CASECF109)" id="uiType_property(CASECF109)" value="300" type="hidden">
- <input name="property(CASECF109)" checked="true" type="checkbox"></td></tr><tr id="row5_Case Information">
- <td class="label mandatory" width="25%">*Tel.:</td><td class="element" width="25%">
- <input name="uiType_property(Phone)" id="uiType_property(Phone)" value="33" type="hidden">
- <input name="property(Phone)" id="property(Phone)" class="textField" style="width:100%" maxlength="300" type="text">
- </td><td class="label" width="25%">Daten Wichtig?:</td><td class="element" width="25%">
- <input name="uiType_property(CASECF10)" id="uiType_property(CASECF10)" value="2" type="hidden">
- <select name="property(CASECF10)" class="select" style="width:95%" onchange="setDependent(this,false)">
- <option value="">-Keine-</option><option value="JA">JA</option><option value="NEIN">NEIN</option>
- <option value="Noch zu klären">Noch zu klären</option></select></td></tr><tr id="row6_Case Information">
- <td class="label mandatory" width="25%">*E-Mail:</td><td class="element" width="25%">
- <input name="uiType_property(Email)" id="uiType_property(Email)" value="25" type="hidden">
- <input name="property(Email)" id="property(Email)" class="textField" style="width:100%" maxlength="300" type="text">
- </td><td class="label" width="25%">Voraussicht. Fertigstellung:</td><td class="element" width="25%">
- <input name="uiType_property(CASECF81)" id="uiType_property(CASECF81)" value="24" type="hidden">
- <div class="bodyText" style="position:relative;">
- <input name="property(CASECF81)" class="textField" style="width:90px" maxlength="20" autocomplete="off" onclick="showCalen('property(CASECF81)',this.value)" type="text"><br>
- <span class="dim" id="dtPtn_property(CASECF81)" name="dtPtn_property(CASECF81)">dd.MM.yyyy</span></div></td></tr>
- <tr id="row7_Case Information"><td class="label mandatory" width="25%">*Newsletter:</td><td class="element" width="25%">
- <input name="uiType_property(CASECF13)" id="uiType_property(CASECF13)" value="2" type="hidden">
- <select name="property(CASECF13)" class="select" style="width:95%" onchange="setDependent(this,false)">
- <option value="">-Keine-</option><option value="Ja">Ja</option><option value="Nein">Nein</option></select></td>
- <td class="label mandatory" width="25%">*Mit folgendem Zubehör:</td><td class="element" width="25%">
- <input name="uiType_property(CASECF4)" id="uiType_property(CASECF4)" value="100" type="hidden">
- <input name="CASECF4" id="CASECF4" value="1" type="hidden">
- <select multiple="multiple" class="select" name="comboValue1" id="comboValue1" style="width:95%"><option value="Ohne ZB">Ohne ZB</option>
- <option value="Tasche">Tasche</option><option value="Netzteil">Netzteil</option><option value="Kabel">Kabel</option>
- <option value="Rechnung">Rechnung</option><option value="CD /'s">CD /'s</option><option value="Maus">Maus</option></select>
- <input name="property(CASECF4)" id="combo1" type="hidden"></td></tr>
- <tr id="row8_Case Information"><td class="label mandatory" width="25%">*Es Wurde abgegeben:</td><td class="element" width="25%">
- <input name="uiType_property(CASECF1)" id="uiType_property(CASECF1)" value="2" type="hidden">
- <select name="property(CASECF1)" class="select" style="width:95%" onchange="setDependent(this,false)">
- <option value="">-Keine-</option><option value="Notebook">Notebook</option><option value="Desktop">Desktop</option>
- <option value="Drucker">Drucker</option><option value="Monitor">Monitor</option>
- <option value="Speicher (HDD, RAM, Flash)">Speicher (HDD, RAM, Flash)</option>
- <option value="Andere Geräte">Andere Geräte</option></select></td><td class="label mandatory" width="25%">*Sonstiges Zubehör:</td>
- <td class="element" width="25%"><input name="uiType_property(CASECF5)" id="uiType_property(CASECF5)" value="1" type="hidden">
- <input name="property(CASECF5)" id="property(CASECF5)" class="textField" style="width:100%" maxlength="20" type="text"></td></tr>
- <tr id="row9_Case Information"><td class="label" width="25%">Herrsteller:</td>
- <td class="element" width="25%"><input name="uiType_property(CASECF2)" id="uiType_property(CASECF2)" value="2" type="hidden">
- <select name="property(CASECF2)" class="select" style="width:95%" onchange="setDependent(this,false)"><option value="">-Keine-</option>
- <option value="Nordland">Nordland</option><option value="Acer">Acer</option><option value="Asus">Asus</option>
- <option value="Packard Bell">Packard Bell</option><option value="HP">HP</option><option value="Dell">Dell</option>
- <option value="Medion">Medion</option><option value="FSC">FSC</option><option value="Sony">Sony</option><option value="Samsung">Samsung</option>
- <option value="MSI">MSI</option><option value="Andere /Unbekannt">Andere /Unbekannt</option></select></td>
- <td class="label mandatory" width="25%">*Passwort:</td>
- <td class="element" width="25%"><input name="uiType_property(CASECF3)" id="uiType_property(CASECF3)" value="1" type="hidden">
- <input name="property(CASECF3)" id="property(CASECF3)" class="textField" style="width:100%" maxlength="20" type="text"></td></tr>
- <tr id="row10_Case Information"><td class="label" width="25%">Typ /Art:</td><td class="element" width="25%">
- <input name="uiType_property(CASECF9)" id="uiType_property(CASECF9)" value="1" type="hidden">
- <input name="property(CASECF9)" id="property(CASECF9)" class="textField" style="width:100%" maxlength="20" type="text"></td>
- <td class="label mandatory" width="25%">*Fach:</td><td class="element" width="25%">
- <input name="uiType_property(CASECF8)" id="uiType_property(CASECF8)" value="2" type="hidden">
- <select name="property(CASECF8)" class="select" style="width:95%" onchange="setDependent(this,false)">
- <option value="">-Keine-</option><option value="Ohne">Ohne</option><option value="A1">A1</option>
- <option value="A2">A2</option><option value="A3">A3</option><option value="A4">A4</option>
- <option value="B1">B1</option><option value="B2">B2</option><option value="B3">B3</option>
- <option value="B4">B4</option><option value="C1">C1</option><option value="C2">C2</option>
- <option value="C3">C3</option><option value="C4">C4</option><option value="D1">D1</option>
- <option value="D2">D2</option><option value="D3">D3</option><option value="D4">D4</option>
- <option value="E1">E1</option><option value="E2">E2</option><option value="F1">F1</option>
- <option value="F2">F2</option><option value="G1">G1</option><option value="G2">G2</option>
- <option value="H1">H1</option><option value="H2">H2</option></select></td></tr>
- <tr id="row11_Case Information"><td class="label" width="25%">Garantie:</td>
- <td class="element" width="25%"><input name="uiType_property(CASECF107)" id="uiType_property(CASECF107)" value="301" type="hidden">
- <input name="property(CASECF107)" type="checkbox"></td><td class="label" width="25%">RMA:</td>
- <td class="element" width="25%"><input name="uiType_property(CASECF105)" id="uiType_property(CASECF105)" value="301" type="hidden">
- <input name="property(CASECF105)" type="checkbox"></td></tr></tbody></table></div><p></p>
- <div id="secDivDescription Information"><table id="secHeadDescription Information" cellpadding="0" cellspacing="0" width="95%">
- <tbody width="100%"><tr><td class="secHead">Beschreibung Information</td></tr></tbody></table>
- <table id="secContentDescription Information" class="secContent" border="0" cellpadding="0" cellspacing="1" width="95%">
- <tbody width="100%"><tr id="row0_Description Information"><td class="label" width="25%">Beschreibung:</td>
- <td class="element" width="0%"><input name="uiType_property(Description)" id="uiType_property(Description)" value="3" type="hidden">
- <textarea name="property(Description)" id="property(Description)" class="textField" rows="5" cols="5" style="width:100%">
- </textarea></td></tr></tbody></table></div><p></p><div id="secDivSolution Information"></div><p></p><div id="secDivComments Information"></div>
- <p></p><input name="comboCount" value="2" type="hidden">
- <input name="dateFields" value="property(CASECF81)" type="hidden"><input name="focusid" value="property(Subject)" type="hidden">
- <input id="currencyFields" value="" type="hidden">
- <input name="fieldvalues" value="ownerName##System||ownerId##515225000000050003" type="hidden"><p></p>
- <table border="0" cellpadding="0" cellspacing="0" width="95%"><tbody><tr><td align="center">
- </td></tr></tbody></table><p></p>
- <div id="copy" class="dropDownMenu" style="display:none;"><table border="0" cellpadding="4" cellspacing="0">
- <tbody><tr onclick="copyMapLocation( 'Billing to Shipping' )" class="dropDownItem" onmouseover="this.className='dropDownItemOver'" onmouseout="this.className='dropDownItem'"><td nowrap="nowrap">Abrechnung zu Versand</td></tr><tr onclick="copyMapLocation( 'Shipping to Billing' )" class="dropDownItem" onmouseover="this.className='dropDownItemOver'" onmouseout="this.className='dropDownItem'"><td nowrap="nowrap">Versand zu Abrechnung</td> </tr></tbody></table></div><div id="drillDownPtr" style="position:absolute;top:-1000px;left:-1000px;"><img src="/crm/images/spacer.gif" class="red-arrow" height="16" width="19"></div>
- <div style="display:none" id="menuincreate"></div>
- </form>
- <?php
- echo $tabs->endPanel();
- echo $tabs->startPanel(PFformat::Lang('TASK_RESPONSIBLE'), 'pane2');
- ?>
- <table class="admintable">
- <tr>
- <td class="key" width="150" valign="top"><a href="javascript:add_user();"><?php echo PFformat::Lang('ADD_MEMBER');?></a></td>
- <td id="user_container"></td>
- </tr>
- </table>
- <?php
- echo $tabs->endPanel();
- echo $tabs->endPane();
- ?>
- </div>
- </div>
- <?php
- echo $form->HiddenField("option");
- echo $form->HiddenField("section");
- echo $form->HiddenField("task");
- echo $form->HiddenField("limitstart");
- echo $form->HiddenField("keyword");
- echo $form->End();
- ?>
- <div id="user_template" style="display:none">
- <?php echo $select_user; ?>
- </div>
und zwar soll diese php/Java Sript beim Abspeicher immer auf die
Datenbank abspeichern und bei editieren oder so wieder aufrufbar sein
wer mir helfen kann wäre toll
MFg