Ejemplo n.º 1
0
 public function buildSelect($text, $id, $options, $tabIndex, $value = '')
 {
     $html = '<option value="nothing-selected">- - - - - - -</option>';
     $select = explode(mswDefineNewline(), $options);
     foreach ($select as $o) {
         $html .= '<option value="' . mswSpecialChars($o) . '"' . mswSelectedItem($value, $o) . '>' . mswCleanData($o) . '</option>' . mswDefineNewline();
     }
     return mswDefineNewline() . '<label class="textHead">' . $text . '</label>' . mswDefineNewline() . '<div class="dataArea"><select name="customField[' . $id . ']" tabindex="' . $tabIndex . '" class="span2">' . $html . '</select></div>' . mswDefineNewline();
 }
Ejemplo n.º 2
0
 public function ticketDepartments($dept = '', $arr = false)
 {
     $html = '';
     $arrD = array();
     $q_dept = mysql_query("SELECT `id`,`name` FROM `" . DB_PREFIX . "departments`\n            WHERE `showDept` = 'yes'\n            ORDER BY `orderBy`\n            ") or die(mswMysqlErrMsg(mysql_errno(), mysql_error(), __LINE__, __FILE__));
     if (mysql_num_rows($q_dept) > 0) {
         while ($DEPT = mysql_fetch_object($q_dept)) {
             $html .= str_replace(array('{value}', '{selected}', '{text}'), array($DEPT->id, mswSelectedItem($dept, $DEPT->id), mswCleanData($DEPT->name)), file_get_contents(PATH . 'content/' . MS_TEMPLATE_SET . '/html/ticket-department.htm'));
             $arrD[$DEPT->id] = mswCleanData($DEPT->name);
         }
     }
     return $arr ? $arrD : $html;
 }
Ejemplo n.º 3
0
    <span style="float:left">E-Mail Address:</span>
    <input type="text" name="email" id="email" class="box" maxlength="250" onkeyup="jQuery(this).removeClass('errorbox').addClass('box')" />
   </span>
   
   <span class="info" style="text-align:right">
    <span style="float:left">Default System Timezone:</span>
    <select name="timezone">
    <?php 
// TIMEZONES..
foreach ($timezones as $k => $v) {
    ?>
    <option value="<?php 
    echo $k;
    ?>
"<?php 
    echo mswSelectedItem($k, 'Europe/London');
    ?>
><?php 
    echo $v;
    ?>
</option>
    <?php 
}
?>
    </select>
   </span>
   
   </p>
   
   <p class="nav">
    <span><input onclick="window.location='?s=4'" class="button_prev" type="button" value="&laquo; Prev" title="Previous" /></span>
Ejemplo n.º 4
0
          <td><?php 
        echo $DEPT->id;
        ?>
</td>
          <td><select name="order[<?php 
        echo $DEPT->id;
        ?>
]" style="width:50px">
          <?php 
        for ($i = 1; $i < $countedRows + 1; $i++) {
            ?>
          <option value="<?php 
            echo $i;
            ?>
"<?php 
            echo mswSelectedItem($DEPT->orderBy, $i, false);
            ?>
><?php 
            echo $i;
            ?>
</option>
          <?php 
        }
        ?>
          </select></td>
          <td><?php 
        echo mswSpecialChars($DEPT->name, false);
        ?>
		  <span class="tdCellInfo">
		  <?php 
        $whatsOn = array($msg_script5, $msg_script5);
Ejemplo n.º 5
0
echo ++$tabIndex;
?>
">
		 <option value="all"<?php 
echo isset($_GET['status']) ? mswSelectedItem('status', 'all', true) : '';
?>
>- - - - - -</option>
		 <option value="yes"<?php 
echo isset($_GET['status']) ? mswSelectedItem('status', 'yes', true) : '';
?>
><?php 
echo $msg_script48;
?>
</option>
		 <option value="no"<?php 
echo isset($_GET['status']) ? mswSelectedItem('status', 'no', true) : '';
?>
><?php 
echo $msg_script49;
?>
</option>
		 </select>
		 
		 <label><?php 
echo $msg_accounts30;
?>
</label>
         <input type="text" class="input-small" tabindex="<?php 
echo ++$tabIndex;
?>
" name="c1" value="<?php 
Ejemplo n.º 6
0
		  
		  <label><?php 
echo $msg_accounts39;
?>
</label>
          <select name="language" tabindex="<?php 
echo ++$tabIndex;
?>
">
          <?php 
$showlang = opendir(REL_PATH . 'content/language');
while (false !== ($read = readdir($showlang))) {
    if (is_dir(REL_PATH . 'content/language/' . $read) && !in_array($read, array('.', '..'))) {
        ?>
           <option<?php 
        echo isset($EDIT->language) ? mswSelectedItem($read, $EDIT->language) : '';
        ?>
><?php 
        echo $read;
        ?>
</option>
           <?php 
    }
}
closedir($showlang);
?>
          </select>
		  
		  <label><?php 
echo $msg_accounts16;
?>
Ejemplo n.º 7
0
echo $msg_kbase36;
?>
</option>
           <?php 
$q_cat = mysql_query("SELECT * FROM `" . DB_PREFIX . "categories` WHERE `subcat` = '0' ORDER BY `name`") or die(mswMysqlErrMsg(mysql_errno(), mysql_error(), __LINE__, __FILE__));
if (mysql_num_rows($q_cat) > 0) {
    ?>
		   <optgroup label="<?php 
    echo mswSpecialChars($msg_kbase37);
    ?>
">
           <?php 
    while ($CAT = mysql_fetch_object($q_cat)) {
        ?>
           <option<?php 
        echo isset($EDIT->id) ? mswSelectedItem($EDIT->subcat, $CAT->id) : '';
        ?>
 value="<?php 
        echo $CAT->id;
        ?>
"><?php 
        echo mswCleanData($CAT->name);
        ?>
</option>
           <?php 
    }
}
?>
           </optgroup>
          </select>
	  
         </select>
         
		 <label><?php 
echo $this->TXT[6];
?>
</label>
         <select name="priority" tabindex="5" onchange="msErrClear('priority')">
         <option value="0">- - - -</option>
		 <?php 
foreach ($this->PRIORITY_LEVELS as $k => $v) {
    ?>
         <option value="<?php 
    echo $k;
    ?>
"<?php 
    echo mswSelectedItem($this->POST['priority'], $k);
    ?>
><?php 
    echo $v;
    ?>
</option>
         <?php 
}
?>
         </select>
         
		 <div class="customFieldsCreate" id="customFieldsArea">
		 <?php 
// CUSTOM FIELDS
// html/custom-fields/*
// CFIELDS displays custom fields only on page refresh, so when errors may be present on form submission..
Ejemplo n.º 9
0
"></td>
		  <?php 
        }
        ?>
          <td><select name="order[<?php 
        echo $QUE->id;
        ?>
]" style="margin:0 10px 0 0;width:50px">
          <?php 
        for ($i = 1; $i < $totalR + 1; $i++) {
            ?>
          <option value="<?php 
            echo $i;
            ?>
"<?php 
            echo mswSelectedItem($QUE->orderBy, $i);
            ?>
><?php 
            echo $i;
            ?>
</option>
          <?php 
        }
        ?>
          </select></td>
          <td>
		  <?php 
        echo mswSpecialChars($QUE->question);
        ?>
		  <span class="tdCellInfo">
		  <?php 
Ejemplo n.º 10
0
	      <label><?php 
echo $msg_imap18;
?>
</label>
          <select name="im_priority" tabindex="<?php 
echo ++$tabIndex;
?>
">
          <?php 
foreach ($ticketLevelSel as $k => $v) {
    ?>
          <option value="<?php 
    echo $k;
    ?>
"<?php 
    echo isset($EDIT->im_priority) ? mswSelectedItem($EDIT->im_priority, $k) : '';
    ?>
><?php 
    echo $v;
    ?>
</option>
          <?php 
}
?>
          </select>
	  
	      <label><?php 
echo $msg_imap19;
?>
</label>
          <input type="text" class="input-xlarge" maxlength="250" name="im_email" tabindex="<?php 
Ejemplo n.º 11
0
?>
</label>
          <select name="timezone" tabindex="<?php 
echo ++$tabIndex;
?>
">
          <option value="0">- - - - - - -</option>
          <?php 
// TIMEZONES..
foreach ($timezones as $k => $v) {
    ?>
          <option value="<?php 
    echo $k;
    ?>
"<?php 
    echo isset($EDIT->timezone) ? mswSelectedItem($EDIT->timezone, $k) : '';
    ?>
><?php 
    echo $v;
    ?>
</option>
          <?php 
}
?>
          </select>
		  
		  </div>
		</div>
		<?php 
if (!isset($EDIT->id) || isset($EDIT->id) && $EDIT->id > 1) {
    ?>
Ejemplo n.º 12
0
		  <label><?php 
echo $msg_newticket8;
?>
</label>
		  <select name="priority" tabindex="<?php 
echo ++$tabIndex;
?>
">
		  <?php 
foreach ($ticketLevelSel as $k => $v) {
    ?>
          <option value="<?php 
    echo $k;
    ?>
"<?php 
    echo mswSelectedItem($k, $SUPTICK->priority);
    ?>
><?php 
    echo $v;
    ?>
</option>
          <?php 
}
?>
		  </select>
		  
		  <div class="addCommsWrapper">
		  <?php 
// BBCode..
include PATH . 'templates/system/bbcode-buttons.php';
?>
Ejemplo n.º 13
0
?>
</label>
         <select name="assign" tabindex="<?php 
echo ++$tabIndex;
?>
">
         <option value="0">- - - - -</option>
         <?php 
$q_users = mysql_query("SELECT * FROM " . DB_PREFIX . "users ORDER BY `name`") or die(mswMysqlErrMsg(mysql_errno(), mysql_error(), __LINE__, __FILE__));
while ($U = mysql_fetch_object($q_users)) {
    ?>
         <option value="<?php 
    echo $U->id;
    ?>
"<?php 
    echo mswSelectedItem('assign', $U->id, true);
    ?>
><?php 
    echo mswCleanData($U->name);
    ?>
</option>
         <?php 
}
?>
         </select>
		
		</div>
       </div>
      </div>
	  <div class="btn-toolbar" style="margin-top:0;padding-top:0">
	   <input type="hidden" name="p" value="<?php 
Ejemplo n.º 14
0
?>
</label>
          <select name="timezone" tabindex="<?php 
echo ++$tabIndex;
?>
">
          <option value="0">- - - - - - -</option>
          <?php 
// TIMEZONES..
foreach ($timezones as $k => $v) {
    ?>
          <option value="<?php 
    echo $k;
    ?>
"<?php 
    echo isset($MSTEAM->timezone) ? mswSelectedItem($MSTEAM->timezone, $k) : '';
    ?>
><?php 
    echo $v;
    ?>
</option>
          <?php 
}
?>
          </select>
		  
		  </div>
		</div>
		<div class="tab-pane fade" id="two">
		 <div class="well">
		  
Ejemplo n.º 15
0
 public function select($text, $id, $options, $tab, $req)
 {
     $html = '';
     $wrapper = file_get_contents(PATH . 'content/' . MS_TEMPLATE_SET . '/html/custom-fields/select.htm');
     $select = explode(mswDefineNewline(), $options);
     foreach ($select as $o) {
         $html .= str_replace(array('{value}', '{selected}', '{text}'), array(mswCleanData($o), isset($_POST['customField'][$id]) ? mswSelectedItem($_POST['customField'][$id], $o) : '', mswCleanData($o)), file_get_contents(PATH . 'content/' . MS_TEMPLATE_SET . '/html/custom-fields/select-option.htm'));
     }
     return str_replace(array('{id}', '{options}', '{label}', '{tab}'), array($id, trim($html), mswCleanData($text), $tab), $wrapper);
 }
Ejemplo n.º 16
0
"></td>
		  <?php 
        }
        ?>
          <td><select name="order[<?php 
        echo $ATT->id;
        ?>
]" style="margin:0 10px 0 0;width:50px">
          <?php 
        for ($i = 1; $i < $countedRows + 1; $i++) {
            ?>
          <option value="<?php 
            echo $i;
            ?>
"<?php 
            echo mswSelectedItem($ATT->orderBy, $i);
            ?>
><?php 
            echo $i;
            ?>
</option>
          <?php 
        }
        ?>
          </select></td>
          <td>
		  <?php 
        echo $ATT->name ? mswSpecialChars($ATT->name) : ($ATT->remote ? $ATT->remote : $ATT->path);
        ?>
		  <span class="tdCellInfo">
		  <?php 
Ejemplo n.º 17
0
"></td>
		  <?php 
                }
                ?>
		  <td style="padding-left:15px"><select name="orderSub[<?php 
                echo $SUB->id;
                ?>
]" style="margin:0 10px 0 0;width:50px">
          <?php 
                for ($i = 1; $i < $subCount + 1; $i++) {
                    ?>
          <option value="<?php 
                    echo $i;
                    ?>
"<?php 
                    echo mswSelectedItem($SUB->orderBy, $i);
                    ?>
><?php 
                    echo $i;
                    ?>
</option>
          <?php 
                }
                ?>
          </select></td>
          <td style="padding-left:15px">
		  <?php 
                echo mswSpecialChars($SUB->name);
                ?>
		  <span class="tdCellInfo">
		  <?php 
Ejemplo n.º 18
0
?>
 />MySQL4&nbsp;&nbsp;&nbsp;<input type="radio" name="mysql_version" value="MySQL5" <?php 
echo (int) $mysqlVer >= 5 ? ' checked="checked"' : '';
?>
 /> MySQL5</span>Version:</span>
   <span class="info" style="text-align:right">
    <span style="float:left">Character Set:</span>
    <select name="charset">
     <?php 
foreach ($cSets as $set) {
    ?>
     <option value="<?php 
    echo $set;
    ?>
"<?php 
    echo mswSelectedItem($set, $defaultSet);
    ?>
><?php 
    echo $set;
    ?>
</option>
     <?php 
}
?>
    </select>
   </span>
   
   </p>
   
   <p class="nav">
    <span><input onclick="window.location='?s=3'" class="button_prev" type="button" value="&laquo; Prev" title="Previous" /></span>
Ejemplo n.º 19
0
          <td><?php 
        echo $SR->id;
        ?>
</td>
		  <td><select name="order[<?php 
        echo $SR->id;
        ?>
]" style="width:50px">
          <?php 
        for ($i = 1; $i < $totalR + 1; $i++) {
            ?>
          <option value="<?php 
            echo $i;
            ?>
"<?php 
            echo mswSelectedItem($SR->orderBy, $i, false);
            ?>
><?php 
            echo $i;
            ?>
</option>
          <?php 
        }
        ?>
          </select></td>
          <td>
		  <?php 
        echo mswCleanData($SR->title);
        ?>
		  <span class="tdCellInfo">
		  <?php 
Ejemplo n.º 20
0
		  <option value=""<?php 
echo mswSelectedItem($SETTINGS->smtp_security, '');
?>
><?php 
echo $msg_settings78;
?>
</option>
		  <option value="tls"<?php 
echo mswSelectedItem($SETTINGS->smtp_security, 'tls');
?>
><?php 
echo $msg_settings79;
?>
</option>
		  <option value="ssl"<?php 
echo mswSelectedItem($SETTINGS->smtp_security, 'ssl');
?>
><?php 
echo $msg_settings80;
?>
</option>
		 </select>
        
		</div>
       </div>
	   <div class="tab-pane fade" id="nine">
	    <div class="well" style="margin-bottom:0">
		 
		 <label><?php 
echo $msg_settings112;
?>
Ejemplo n.º 21
0
		  <td><?php 
        echo $FIELD->id;
        ?>
</td>
          <td><select name="order[<?php 
        echo $FIELD->id;
        ?>
]" style="width:50px">
          <?php 
        for ($i = 1; $i < $countedRows + 1; $i++) {
            ?>
          <option value="<?php 
            echo $i;
            ?>
"<?php 
            echo mswSelectedItem($FIELD->orderBy, $i);
            ?>
><?php 
            echo $i;
            ?>
</option>
          <?php 
        }
        ?>
          </select></td>
          <td>
		  <?php 
        echo mswSpecialChars($FIELD->fieldInstructions);
        ?>
		  <span class="tdCellInfo">
		  <?php 
Ejemplo n.º 22
0
        echo $LEVELS->marker ? $LEVELS->marker : $LEVELS->id;
        ?>
</td>
		  <td>
		  <select name="order[<?php 
        echo $LEVELS->id;
        ?>
]" style="width:50px">
          <?php 
        for ($i = 1; $i < $countedRows + 1; $i++) {
            ?>
          <option value="<?php 
            echo $i;
            ?>
"<?php 
            echo mswSelectedItem($LEVELS->orderBy, $i, false);
            ?>
><?php 
            echo $i;
            ?>
</option>
          <?php 
        }
        $whatsOn = array($msg_script5);
        if ($LEVELS->display == 'yes') {
            $whatsOn[0] = $msg_script4;
        }
        ?>
          </select>
		  </td>
          <td>
Ejemplo n.º 23
0
		 <div class="well">
		 
		  <label><?php 
    echo $this->TXT[10];
    ?>
</label>
          <select name="language">
		   <?php 
    // Languages..
    foreach ($this->LANGUAGES as $lK) {
        ?>
		   <option value="<?php 
        echo $lK;
        ?>
"<?php 
        echo isset($this->ACCOUNT['language']) ? mswSelectedItem($this->ACCOUNT['language'], $lK) : '';
        ?>
><?php 
        echo ucfirst($lK);
        ?>
</option>
		   <?php 
    }
    ?>
		  </select>
		 
		 </div>
		</div>
		<?php 
}
?>
Ejemplo n.º 24
0
?>
" class="input-small" id="to" name="to" value="<?php 
echo mswSpecialChars($to);
?>
" style="margin-right:1px">
     <div class="input-append">
	  <select name="view" class="span1 noleft-borders" style="width:100px">
	   <option value="day"<?php 
echo mswSelectedItem('view', 'day', true);
?>
><?php 
echo $msg_reports4;
?>
</option>
	   <option value="month"<?php 
echo mswSelectedItem('view', 'month', true);
?>
><?php 
echo $msg_reports5;
?>
</option>
	  </select>
	  <button type="submit" class="btn btn-info"><i class="icon-search"></i></button>
	 </div> 
	</div>
	
	<div class="row-fluid">
	
	  <div class="well" style="margin-bottom:10px;padding-bottom:0">
       <table class="table table-striped table-hover">
        <thead>