</div>

			<div class="vbx-input-complex vbx-input-container<?php 
echo $voice['value'] !== 'man' && $voice['value'] !== 'woman' ? ' hide' : '';
?>
" id="lang-code-default">
				<label class="field-label">Voice Language
					<?php 
echo t_form_dropdown(array('name' => 'site[voice_language]', 'id' => 'site-voice-lang-default', 'class' => 'medium'), $lang_codes['default'], $voice_language['value']);
?>
				</label>
			</div>

			<div class="vbx-input-complex vbx-input-container<?php 
echo $voice['value'] == 'man' || $voice['value'] == 'woman' ? ' hide' : '';
?>
" id="lang-code-extended">
				<label class="field-label">Voice Language
					<?php 
echo t_form_dropdown(array('name' => 'site[voice_language]', 'id' => 'site-voice-lang-extended', 'class' => 'medium'), $lang_codes['extended'], $voice_language['value']);
?>
				</label>
			</div>

			<p class="instruction">See the Twilio Documentation for <a href="http://www.twilio.com/docs/api/twiml/say#attributes-voice">Voice &amp; Language Attributes</a><br />for more info.</p>
		</fieldset>
	</div>
				
	<button class="submit-button" type="submit"><span>Update</span></button>
</form>
Beispiel #2
0
<?php

global $dial_disabled;
if (!empty($callerid_numbers) && count($callerid_numbers) > 0) {
    /* callerid_numbers */
    ?>

	<label class="field-label"><span class="label-text">Caller ID</span>
		<?php 
    $params = array('name' => 'browserphone_caller_id', 'id' => 'caller-id-phone-number');
    echo t_form_dropdown($params, $browserphone['number_options'], $browserphone['caller_id']);
    ?>
	</label>

<?php 
} else {
    /* callerid_numbers */
    ?>

	<?php 
    $dial_disabled = true;
    ?>
	<?php 
    if (OpenVBX::getTwilioAccountType() == 'Trial') {
        /* trial-notice */
        ?>
		<p>You&rsquo;re using a Twilio trial account, please upgrade to dial using a virtual phone number.</p>
	<?php 
    } else {
        /* trial-notice */
        ?>
Beispiel #3
0
<h3>Theme</h3>

<form name="vbx-settings" action="<?php 
echo site_url('settings/site/theme');
?>
#theme" method="post" class="vbx-settings-form vbx-form">

	<fieldset class="vbx-input-container">
		<label for="site-theme" class="field-label">Choose a theme
			<?php 
$params = array('name' => 'site[theme]', 'id' => 'site-theme', 'class' => 'medium');
echo t_form_dropdown($params, $available_themes, $theme);
?>
		</label>
	</fieldset>
	
	<fieldset class="vbx-input-container">
		<label for="site-gravatars" class="field-label">Gravatars</label>
		<label for="gravatars-on" class="field-label-inline">
			<?php 
$radio = array('id' => 'gravatars-on', 'name' => 'site[gravatars]');
echo form_radio($radio, '1', $gravatars['value'] == 1);
?>
 Gravatars ON
		</label>
		<label for="gravatars-off" class="field-label-inline">
			<?php 
$radio = array_merge($radio, array('id' => 'gravatars-off'));
echo form_radio($radio, '0', $gravatars['value'] == 0);
?>
 Gravatars OFF
Beispiel #4
0
    if (!empty($item->smsUrl)) {
        ?>
							<li><b>SMS Url:</b> <?php 
        echo $item->smsUrl;
        ?>
</li>
						<?php 
    }
    ?>
					</ul>
				</td>
				<td class="incoming-number-flow">
					<?php 
    $settings = array('name' => 'flow_id', 'id' => 'flow_select_' . $item->id);
    $flow_options['-'] = 'Import Number';
    echo t_form_dropdown($settings, $flow_options);
    ?>
					<span class="status"><?php 
    echo $item->status;
    ?>
</span>
				</td>
				<td class="incoming-number-caps">
					<?php 
    if (!empty($item->capabilities)) {
        echo implode(', ', $item->capabilities);
    }
    ?>
				</td>
				<td class="incoming-number-delete">
				<?php 
Beispiel #5
0
						<span class="number-label"><?php 
            echo $item->name;
            ?>
</span>
					<?php 
        }
        /* Sandbox */
        ?>
					<?php 
        echo $item->phone;
        ?>
				</td>
				<td class="incoming-number-flow">
					<?php 
        $settings = array('name' => 'flow_id', 'id' => 'flow_select_' . $item->id);
        echo t_form_dropdown($settings, $flow_options, $item->flow_id);
        ?>
					<span class="status"><?php 
        echo $item->status;
        ?>
</span>
				</td>
				<td class="incoming-number-caps">
					<?php 
        if (!empty($item->capabilities)) {
            echo implode(', ', $item->capabilities);
        }
        ?>
				</td>
				<td class="incoming-number-delete">
					<a href="numbers/delete/<?php 
Beispiel #6
0
	<form class="number-order-interface content ui-helper-clearfix vbx-form" action="<?php 
echo site_url('numbers/add');
?>
" method="post">
		<div class="number-order-options">
			<div id="country-select" class="vbx-input-container">
				<img src="<?php 
echo asset_url('');
?>
assets/i/countries/<?php 
echo strtolower($selected_country);
?>
.png" />
				<?php 
$params = array('name' => 'country', 'id' => 'iCountry', 'class' => 'small');
echo t_form_dropdown($params, $countries, $selected_country);
?>
			</div>
			<div id="number-order-local" class="number-type-select">
				<input type="radio" id="iTypeLocal" name="type" value="local" checked="checked" />
				<label for="iTypeLocal" class="field-label-inline">Local</label>
			</div>
			<div id="number-order-toll_free" class="number-type-select">
				<input type="radio" id="iTypeTollFree" name="type" value="toll_free" />
				<label for="iTypeTollFree" class="field-label-inline">Toll-Free</label>
			</div>
		</div>
		
		<div id="pAreaCode" class="area-code">
			<fieldset class="vbx-input-complex vbx-input-container">
				<label for="iAreaCode" class="area-code-label">Area Code</label>
			<?php 
$url_data = array('name' => 'tenant[url_prefix]', 'id' => 'tenant-url-prefix', 'class' => 'medium');
echo t_form_input($url_data, '');
?>
		</label>
    </div>
	
	<div class="vbx-input-complex vbx-input-container">
	<?php 
if (isset($connect_application_sid) && !empty($connect_application_sid['value'])) {
    ?>
		<label for="auth-type" class="field-label">Authentication Type:
			<?php 
    $params = array('name' => 'auth_type', 'id' => 'auth-type', 'class' => 'medium');
    $options = array('subaccount' => 'Sub-Account', 'connect' => 'Twilio Connect');
    echo t_form_dropdown($params, $options);
    ?>
		</label>
	<?php 
}
?>
	</div>
	
	<div class="vbx-input-complex vbx-input-container">
	    <button class="add-tenant-button normal-button" type="submit"><span>Add tenant</span></button>
	</div>
	
	<?php 
if (!isset($connect_application_sid) || empty($connect_application_sid['value'])) {
    ?>
		<div class="info" style="width: 50%;">
	
		<fieldset>
	
			<h3>Text to Speech</h3>
		
			<div class="vbx-input-complex vbx-input-container">
				<label class="field-label">Voice
					<?php 
$params = array('name' => 'site[voice]', 'id' => 'site-voice', 'class' => 'medium');
$options = array('man' => 'Man', 'woman' => 'Woman');
echo t_form_dropdown($params, $options, $voice['value']);
?>
				</label>
			</div>

			<div class="vbx-input-complex vbx-input-container">
				<label class="field-label">Voice Language
					<?php 
$params = array('name' => 'site[voice_language]', 'id' => 'site-voice-lang', 'class' => 'medium');
$options = array('en-gb' => 'British English', 'en' => 'English', 'fr' => 'French', 'de' => 'German', 'es' => 'Spanish');
echo t_form_dropdown($params, $options, $voice_language['value']);
?>
				</label>
			</div>
		
		</fieldset>
	</div>
				
	<button class="submit-button" type="submit"><span>Update</span></button>

</form>