示例#1
0
文件: update.php 项目: swk/bluebox
	    </div>

	    <div class="field">
		    <?php 
echo form::label('activefeaturecode[exten]', 'Destination: ');
?>
		    <?php 
if (isset($activefeaturecode['exten'])) {
    $selectedClass = numbering::getAssignedPoolByNumber($activefeaturecode['exten']);
} else {
    $selectedClass = NULL;
}
echo numbering::poolsDropdown(array('name' => 'activefeaturecode_class_type', 'forDependent' => TRUE), $selectedClass);
echo " named ";
echo numbering::numbersDropdown(array('id' => 'activefeaturecode_inbound', 'name' => 'activefeaturecode[exten]', 'useNames' => TRUE, 'optGroups' => FALSE, 'forDependent' => TRUE), isset($activefeaturecode['exten']) ? $activefeaturecode['exten'] : NULL);
jquery::addQuery('#activefeaturecode_inbound')->dependent('{ parent: \'activefeaturecode_class_type\', group: \'common_class\' }');
?>
	    </div>

	    <div class="field">
	    <?php 
echo form::label('activefeaturecode[leg]', 'Allow feature code from: ');
echo form::dropdown('activefeaturecode[leg]', array('b' => 'Callee', 'a' => 'Caller'));
?>
	    </div>
    </div>

    <script type="text/javascript">
    	$(function() {

		<?php 
示例#2
0
文件: update.php 项目: swk/bluebox
?>

            <div class="field" style="text-align: center;">

                During all other times route calls to a

                <?php 
if (isset($timeofday['outside_number_id'])) {
    $selectedClass = numbering::getAssignedPoolByNumber($timeofday['outside_number_id']);
} else {
    $selectedClass = NULL;
}
echo numbering::poolsDropdown(array('name' => 'outside_class_type', 'forDependent' => TRUE), $selectedClass);
echo " named ";
echo numbering::numbersDropdown(array('id' => 'timeofday_outside', 'name' => 'timeofday[outside_number_id]', 'useNames' => TRUE, 'optGroups' => FALSE, 'forDependent' => TRUE), isset($timeofday['outside_number_id']) ? $timeofday['outside_number_id'] : NULL);
jquery::addQuery('#timeofday_outside')->dependent('{ parent: \'outside_class_type\', group: \'common_class\' }');
?>

            </div>

        <?php 
echo form::close_section();
?>

    <?php 
echo form::close_section();
?>

    <?php 
if (isset($views)) {
    echo subview::renderAsSections($views);
示例#3
0
文件: configure.php 项目: swk/bluebox
    <?php 
echo form::close_section();
?>

<?php 
// If the jquery exists use it to make it more interactive
if (class_exists('jquery')) {
    jquery::addQuery('#dbType')->change('function () {
                if($(this).val().indexOf(\'sqlite\') == -1)
                {
                    $(\'.dbCredentials\').show();
                    $(\'#dbHostName\').show();
                    $(\'#dbPathName\').hide();
                    $(\'#label_dbHostName\').text(\'' . __('Database Host:') . '\');
                    if($(this).val().indexOf(\'mysql\') == -1)
                    {
                        $(\'#dbPortSelection\').val(\'5432\');
                    } else {
                        $(\'#dbPortSelection\').val(\'3306\');
                    }
                } else {
                    $(\'.dbCredentials\').hide();
                    $(\'#dbHostName\').hide();
                    $(\'#dbPathName\').show();
                    $(\'#label_dbHostName\').text(\'' . __('Database Path:') . '\');
                }
            }
        ');
    jquery::addQuery('#dbType')->trigger('change');
}
示例#4
0
文件: telephony.php 项目: swk/bluebox
    <?php 
echo form::open_section('Softswitch Selection');
?>

        <div class="field">
        <?php 
echo form::label('tel_driver', 'Telephony Driver:');
echo form::dropdown('tel_driver', $drivers, $driver);
?>
        </div>

    <?php 
echo form::close_section();
?>



<?php 
// If the jquery exists use it to make it more interactive
if (class_exists('jquery')) {
    jquery::addPlugin('blockUI');
    jquery::addQuery('')->ajaxStop('$.unblockUI');
    jquery::addQuery('#tel_driver')->change('
            function () {
                $.blockUI({ message: \'<h2>' . __('Please Wait...') . '</h2>\' });
                $(\'#installWizard\').submit();
                return true;
            }
        ');
}
示例#5
0
文件: blast.php 项目: swk/bluebox
 *
 * The Initial Developer of the Original Code is Michael Phillips <*****@*****.**>.
 *
 * Portions created by the Initial Developer are Copyright (C)
 * the Initial Developer. All Rights Reserved.
 *
 * Contributor(s):
 * Michael Phillips
 *
 *
 */
?>

<?php 
jquery::addPlugin('multiselect');
jquery::addQuery('.multiselect')->multiselect();
?>


<?php 
message::render();
?>
<div class="form">
<?php 
echo form::open();
?>
<fieldset>
<legend>
    Voicemail Blasting
</legend>
示例#6
0
文件: jgrid.php 项目: swk/bluebox
 /**
  * This function buils the HTML for a grid, you can choose to render the paging/nav bar
  * and supply any additional HTML attributes for either the table of the nav div in a array
  * such that the array looks like:
  *
  * array(
  * 	'table' => array ('id' => 'someID', 'class'=> 'gridTable', 'extra' => 'onclick="alert('test');"),
  * 	'div' => array ('style' => 'text-align: center;')
  * )
  *
  * @return string grid HTML
  * @param bool $createNavGrid[optional]
  * @param array $attributes[optional]
  */
 public function render($createNavGrid = true, $attributes = array())
 {
     /**
      *
      * THIS SECTION GENERATES HTML FOR A TABLE
      *
      */
     $html = '<div id="' . $this->gridName . 'AjaxMessageReceiver" style="display:none;">&nbsp;</div>';
     // If the user has not supplied an id then we will gen one for the table
     if (empty($attributes['table']['id'])) {
         $attributes['table']['id'] = $this->gridName;
     }
     // We need to add a default class to the table
     $attributes['table']['class'] = empty($attributes['table']['class']) ? 'scroll jqgrid_instance' : $attributes['table']['class'] . ' scroll jqgrid_instance';
     // This gets any extra attributes and unsets it so the form helper will not parse it
     if (!empty($attributes['table']['extra'])) {
         $extra = $attributes['table']['extra'];
         unset($attributes['table']['extra']);
     } else {
         $extra = '';
     }
     // Build the HTML for the table
     $html .= '<table' . form::attributes($attributes['table']) . ' ' . $extra . '><tr><td></td></tr></table>' . "\n";
     /**
      *
      * THIS SECTION GENERATES HTML FOR A NAVIGATION DIV
      *
      */
     $customNavButtons = array();
     $navGrid = array('options' => array(), 'edit' => array(), 'add' => array(), 'del' => array(), 'search' => array(), 'view' => array());
     if ($createNavGrid) {
         // If the user has not supplied an id then we will gen one for the div
         if (empty($attributes['div']['id'])) {
             $attributes['div']['id'] = 'pager_' . $attributes['table']['id'];
         }
         // We need to add a default class to the div
         $attributes['div']['class'] = empty($attributes['div']['class']) ? 'scroll' : $attributes['div']['class'] . ' scroll';
         // This gets any extra attributes and unsets it so the form helper will not parse it
         if (!empty($attributes['div']['extra'])) {
             $extra = $attributes['div']['extra'];
             unset($attributes['div']['extra']);
         } else {
             $extra = '';
         }
         // Build the HTML for the div
         $html .= '<div' . form::attributes($attributes['div']) . ' ' . $extra . '></div>' . "\n";
         // Add the pager div ID to the grid parameters
         $this->jquery['pager'] = '#' . $attributes['div']['id'];
         // build the array of navGrid options, setting defaults as we go
         if (isset($this->jquery['navGrid'])) {
             $this->jquery['navGrid'] += $navGrid;
             $navGrid = $this->jquery['navGrid'];
             unset($this->jquery['navGrid']);
         }
         $navOptions = array('edit' => false, 'add' => false, 'del' => false, 'search' => true, 'view' => false);
         $navGrid['options'] = arr::merge($navOptions, $navGrid['options']);
         // build an array of navButtons
         if (!empty($this->jquery['navButton'])) {
             $customNavButtons = $this->jquery['navButton'];
             unset($this->jquery['navButton']);
         }
     }
     /**
      *
      * THIS SECTION GENERATES JS
      *
      */
     self::_orderColumns();
     $this->jquery['colNames'] = array_values($this->query['columns']);
     if (!empty($this->query['actions'])) {
         // Add this column name to the jqgrid colName headers
         $this->jquery['colNames'][] = '<div style="text-align:center;">' . __('Actions') . '</div>';
         // A convience wraper for adding a colModel to jqgrid
         $colModel =& $this->jquery['colModel'][];
         // Accept any custom parameters for the action column
         if (!empty($this->query['actionsColumn'])) {
             $colModel = $this->query['actionsColumn'];
         }
         // Add a set of non-overridable defaults and save it as the column model
         $colModel['name'] = 'actions';
         $colModel['search'] = false;
         $colModel['sortable'] = false;
         $colModel['align'] = 'center';
     }
     jquery::addPlugin('betagrid');
     $jqueryGrid = jquery::addQuery('#' . $attributes['table']['id'])->jqGrid($this->jquery);
     // This has to come after the jquery helper but the above if block for $createNavGrid must come before
     if ($createNavGrid) {
         $jqueryNavGrid = $jqueryGrid->navGrid('#' . $attributes['div']['id'], $navGrid['options'], $navGrid['edit'], $navGrid['add'], $navGrid['del'], $navGrid['search']);
         if (!empty($customNavButtons)) {
             foreach ($customNavButtons as $customNavButton) {
                 // Replace the keywords with values
                 $clickFunc =& $customNavButton['onClickButton'];
                 if (!empty($clickFunc)) {
                     $clickFunc = str_replace(array('{table_id}', '{pager_id}'), array($attributes['table']['id'], $attributes['div']['id']), $clickFunc);
                 }
                 // Build the JS for a new navButton
                 $jqueryNavGrid->navButtonAdd('#' . $attributes['div']['id'], $customNavButton);
             }
         }
     }
     // Return the html string
     return $html;
 }
示例#7
0
文件: edit.php 项目: swk/bluebox
                        <?php 
    echo form::label('pdnsrecord[' . $iteration . '][content]', 'Content:');
    ?>
                        <?php 
    echo form::input(array('name' => 'pdnsrecord[' . $iteration . '][content]', 'class' => 'pdnsrecord_content'), $record['content']);
    ?>
                    </div>

                </div>

            <?php 
}
?>
            
            <?php 
jquery::addQuery('#powerdns_table .remove_record')->click('function (e) { $(this).parent().slideUp(\'500\', function () { $(this).remove() });}');
?>

        </div>

        <div class="new_record_container">
            <?php 
echo '<a href="' . url::current() . '" id="new_record" class="nxt_aval_link"><span>New DNS Record</span></a>';
?>
        </div>

        <div id="record_template" class="record hide">
            <div class="field record_name">
                <?php 
echo form::label('pdnsrecord_name', 'Record:');
?>
示例#8
0
文件: update.php 项目: swk/bluebox
?>
            
            <div class="field" style="text-align: center;">

                <span id="time_range_text">On Moday through Friday between the hours of 07:00 and 17:00,<br /> route calls to a</span>

                <?php 
if (isset($timeofday['during_number_id'])) {
    $selectedClass = numbering::getAssignedPoolByNumber($timeofday['during_number_id']);
} else {
    $selectedClass = NULL;
}
echo numbering::poolsDropdown(array('name' => 'during_class_type', 'forDependent' => TRUE), $selectedClass);
echo " named ";
echo numbering::numbersDropdown(array('id' => 'timeofday_during', 'name' => 'timeofday[during_number_id]', 'useNames' => TRUE, 'optGroups' => FALSE, 'forDependent' => TRUE), isset($timeofday['during_number_id']) ? $timeofday['during_number_id'] : NULL);
jquery::addQuery('#timeofday_during')->dependent('{ parent: \'during_class_type\', group: \'common_class\' }');
?>

            </div>

        <?php 
echo form::close_section();
?>

    <?php 
echo form::close_section();
?>

    <?php 
if (isset($views)) {
    echo subview::renderAsSections($views);
示例#9
0
文件: doInstall.php 项目: swk/bluebox
			<?php 
echo __('Please Wait...');
?>
                    </div>
                    <?php 
echo html::image('skins/installer/assets/img/installing.gif', 'Installing please wait...');
?>
		</div>

		<input type="hidden" id="hidden_next" name="next" value="" />

    <?php 
echo form::close_section();
?>


<?php 
if (class_exists('jquery')) {
    jquery::addQuery('#noJS')->hide();
    jquery::addQuery('#next_Continue')->click('function () {
                $(\'#next_Continue\').hide();
                $(\'#prev_Back\').hide();
                $(\'.clickNext\').hide();
                $(\'.error\').hide();
                $(\'.inProgress\').show();
                $(\'#hidden_next\').val(\'next\');
                $(\'#installWizard\').submit();
                return true;
            }
        ');
}
示例#10
0
文件: update.php 项目: swk/bluebox
?>

        <div class="field">
            <?php 
echo form::label('xmpp[registry][exten]', 'Route incoming calls to:');
?>
            <?php 
if (isset($xmpp['registry']['exten'])) {
    $selectedClass = numbering::getAssignedPoolByNumber($xmpp['registry']['exten']);
} else {
    $selectedClass = NULL;
}
echo numbering::poolsDropdown(array('name' => 'xmpp_class_type', 'forDependent' => TRUE), $selectedClass);
echo " named ";
echo numbering::numbersDropdown(array('id' => 'xmpp_inbound', 'name' => 'xmpp[registry][exten]', 'useNames' => TRUE, 'optGroups' => FALSE, 'forDependent' => TRUE), isset($xmpp['registry']['exten']) ? $xmpp['registry']['exten'] : NULL);
jquery::addQuery('#xmpp_inbound')->dependent('{ parent: \'xmpp_class_type\', group: \'common_class\' }');
?>

        </div>

        <div class="field">
        <?php 
echo form::label('xmpp[registry][inbound_context]', 'Default Incoming Context:');
echo numbering::selectContext('xmpp[registry][inbound_context]', isset($xmpp['registry']['inbound_context']) ? $xmpp['registry']['inbound_context'] : '');
?>
        </div>

    <?php 
echo form::close_section();
?>