示例#1
0
"><?php 
    echo $this->status['github'];
    ?>
</a></td>
							</tr>
						<?php 
}
?>
						
						<tr>
							<th><?php 
echo Lang::txt('COM_TOOLS_DEVELOPMENT_TEAM');
?>
</th>
							<td><?php 
echo \Components\Tools\Helpers\Html::getDevTeam($this->status['developers']);
?>
</td>
						</tr>
						<tr>
							<th colspan="2" class="toolinfo_hed"><?php 
echo Lang::txt('COM_TOOLS_DEVELOPER_TOOLS');
?>
</th>
						</tr>
						<tr>
							<th colspan="2">
							<!-- / tool admin icons -->
								<ul class="developer actions">
									<li class="history"><a href="<?php 
echo Route::url('index.php?option=com_support&task=ticket&id=' . $this->status['ticketid']);
示例#2
0
: </span><span class="desc"><?php 
        echo $t->title;
        ?>
</span></p>
								<p><span class="heading"><?php 
        echo ucfirst(Lang::txt('COM_TOOLS_DESCRIPTION'));
        ?>
: </span><span class="desc"><?php 
        echo $t->description;
        ?>
</span></p>
								<p><span class="heading"><?php 
        echo ucfirst(Lang::txt('COM_TOOLS_AUTHORS'));
        ?>
: </span><span class="desc"><?php 
        echo \Components\Tools\Helpers\Html::getDevTeam($t->authors);
        ?>
</span></p>
								<p><span class="heading"><?php 
        echo ucfirst(Lang::txt('COM_TOOLS_TOOL_ACCESS'));
        ?>
: </span><span class="desc"><?php 
        echo $toolaccess;
        ?>
</span></p>
								<p><span class="heading"><?php 
        echo ucfirst(Lang::txt('COM_TOOLS_CODE_ACCESS'));
        ?>
: </span><span class="desc"><?php 
        echo $codeaccess;
        ?>
示例#3
0
				<p><?php 
echo Lang::txt('COM_TOOLS_SIDE_TIPS_WIKIACCESS');
?>
</p>

				<label for="t_team">
					<?php 
echo Lang::txt('COM_TOOLS_DEVELOPMENT_TEAM');
?>
: <span class="required"><?php 
echo Lang::txt('JOPTION_REQUIRED');
?>
</span>
					<input type="text" name="tool[developers]" id="t_team" value="<?php 
echo \Components\Tools\Helpers\Html::getDevTeam($this->defaults['developers'], $this->id);
?>
" />
					<span class="hint"><?php 
echo Config::get('sitename') . ' ' . Lang::txt('COM_TOOLS_HINT_TEAM');
?>
</span>
				</label>
			</fieldset>

			<p class="submit">
				<input type="submit" class="btn btn-success" value="<?php 
echo !$this->id ? Lang::txt('COM_TOOLS_REGISTER_TOOL') : Lang::txt('COM_TOOLS_SAVE_CHANGES');
?>
" />
示例#4
0
 /**
  * Update a support ticket
  *
  * @param      integer $toolid    Tool ID
  * @param      array   $oldstuff  Information before any changes
  * @param      array   $newstuff  Information after changes
  * @param      string  $comment   Comments to add
  * @param      integer $access    Parameter description (if any) ...
  * @param      integer $email     Parameter description (if any) ...
  * @param      integer $action    Parameter description (if any) ...
  * @return     boolean False if errors, True on success
  */
 protected function _updateTicket($toolid, $oldstuff, $newstuff, $comment, $access = 0, $email = 0, $action = 1, $toolinfo = array())
 {
     $obj = new \Components\Tools\Tables\Tool($this->database);
     $summary = '';
     $rowc = new \Components\Support\Models\Comment();
     $rowc->set('ticket', $obj->getTicketId($toolid));
     // see what changed
     if ($oldstuff != $newstuff) {
         if ($oldstuff['toolname'] != $newstuff['toolname']) {
             $rowc->changelog()->changed(Lang::txt('COM_TOOLS_TOOLNAME'), $oldstuff['toolname'], $newstuff['toolname']);
         }
         if ($oldstuff['title'] != $newstuff['title']) {
             $rowc->changelog()->changed(Lang::txt('COM_TOOLS_TOOL') . ' ' . strtolower(Lang::txt('COM_TOOLS_TITLE')), $oldstuff['title'], $newstuff['title']);
             $summary .= strtolower(Lang::txt('COM_TOOLS_TITLE'));
         }
         if ($oldstuff['version'] != '' && $oldstuff['version'] != $newstuff['version']) {
             $rowc->changelog()->changed(strtolower(Lang::txt('COM_TOOLS_DEV_VERSION_LABEL')), $oldstuff['version'], $newstuff['version']);
             $summary .= $summary == '' ? '' : ', ';
             $summary .= strtolower(Lang::txt('COM_TOOLS_VERSION'));
         } else {
             if ($oldstuff['version'] == '' && $newstuff['version'] != '') {
                 $rowc->changelog()->changed(strtolower(Lang::txt('COM_TOOLS_DEV_VERSION_LABEL')), '', $newstuff['version']);
             }
         }
         if ($oldstuff['description'] != $newstuff['description']) {
             $rowc->changelog()->changed(Lang::txt('COM_TOOLS_TOOL') . ' ' . strtolower(Lang::txt('COM_TOOLS_DESCRIPTION')), $oldstuff['description'], $newstuff['description']);
             $summary .= $summary == '' ? '' : ', ';
             $summary .= strtolower(Lang::txt('COM_TOOLS_DESCRIPTION'));
         }
         if ($oldstuff['exec'] != $newstuff['exec']) {
             $rowc->changelog()->changed(Lang::txt('COM_TOOLS_TOOL_ACCESS'), $oldstuff['exec'], $newstuff['exec']);
             if ($newstuff['exec'] == '@GROUP') {
                 $rowc->changelog()->changed(Lang::txt('COM_TOOLS_ALLOWED_GROUPS'), '', \Components\Tools\Helpers\Html::getGroups($newstuff['membergroups']));
             }
             $summary .= $summary == '' ? '' : ', ';
             $summary .= strtolower(Lang::txt('COM_TOOLS_TOOL_ACCESS'));
         }
         if ($oldstuff['code'] != $newstuff['code']) {
             $rowc->changelog()->changed(Lang::txt('COM_TOOLS_CODE_ACCESS'), $oldstuff['code'], $newstuff['code']);
             $summary .= $summary == '' ? '' : ', ';
             $summary .= strtolower(Lang::txt('COM_TOOLS_CODE_ACCESS'));
         }
         if ($oldstuff['wiki'] != $newstuff['wiki']) {
             $rowc->changelog()->changed(Lang::txt('COM_TOOLS_WIKI_ACCESS'), $oldstuff['wiki'], $newstuff['wiki']);
             $summary .= $summary == '' ? '' : ', ';
             $summary .= strtolower(Lang::txt('COM_TOOLS_WIKI_ACCESS'));
         }
         if ($oldstuff['vncGeometry'] != $newstuff['vncGeometry']) {
             $rowc->changelog()->changed(Lang::txt('COM_TOOLS_VNC_GEOMETRY'), $oldstuff['vncGeometry'], $newstuff['vncGeometry']);
             $summary .= $summary == '' ? '' : ', ';
             $summary .= strtolower(Lang::txt('COM_TOOLS_VNC_GEOMETRY'));
         }
         if ($oldstuff['developers'] != $newstuff['developers']) {
             $rowc->changelog()->changed(Lang::txt('COM_TOOLS_DEVELOPMENT_TEAM'), \Components\Tools\Helpers\Html::getDevTeam($oldstuff['developers']), \Components\Tools\Helpers\Html::getDevTeam($newstuff['developers']));
             $summary .= $summary == '' ? '' : ', ';
             $summary .= strtolower(Lang::txt('COM_TOOLS_DEVELOPMENT_TEAM'));
         }
         // end of tool information changes
         if ($summary) {
             $summary .= ' ' . Lang::txt('COM_TOOLS_INFO_CHANGED');
             $action = 1;
         }
         // tool status/priority changes
         if ($oldstuff['priority'] != $newstuff['priority']) {
             $rowc->changelog()->changed(Lang::txt('COM_TOOLS_PRIORITY'), \Components\Tools\Helpers\Html::getPriority($oldstuff['priority']), \Components\Tools\Helpers\Html::getPriority($newstuff['priority']));
             $email = 0;
             // do not send email about priority changes
         }
         if ($oldstuff['state'] != $newstuff['state']) {
             $rowc->changelog()->changed(Lang::txt('COM_TOOLS_TICKET_CHANGED_FROM'), \Components\Tools\Helpers\Html::getStatusName($oldstuff['state'], $oldstate), \Components\Tools\Helpers\Html::getStatusName($newstuff['state'], $newstate));
             $summary = Lang::txt('COM_TOOLS_STATUS') . ' ' . Lang::txt('COM_TOOLS_TICKET_CHANGED_FROM') . ' ' . $oldstate . ' ' . Lang::txt('COM_TOOLS_TO') . ' ' . $newstate;
             $email = 1;
             // send email about status changes
             $action = 2;
         }
     }
     if ($comment) {
         //$action = $action==2 ? $action : 3;
         $email = 1;
         $rowc->set('comment', nl2br($comment));
     }
     $rowc->set('created', Date::toSql());
     $rowc->set('created_by', User::get('id'));
     $rowc->set('access', $access);
     if (!$rowc->store()) {
         $this->setError($rowc->getError());
         return false;
     }
     if ($email) {
         // send notification emails
         $summary = $summary ? $summary : $comment;
         $this->_email($toolid, $summary, $comment, $access, $action, $toolinfo);
     }
     return true;
 }