echo $currentlyIsUser ? "none" : ""; ?> "> <h2>Prompt</h2> <p>What will the caller hear before leaving their message?</p> <?php echo AppletUI::AudioSpeechPicker('prompt'); ?> </div> <div class="prompt-for-individual" style="display: <?php echo !$currentlyIsUser ? "none" : ""; ?> "> <h2>Prompt</h2> <div class="vbx-full-pane"> <fieldset class="vbx-input-container"> The individual's personal voicemail greeting will be played. </fieldset> </div> </div> <br /> <h2>Take voicemail</h2> <p>Which individual or group should receive the voicemail?</p> <?php echo AppletUI::UserGroupPicker('permissions'); ?> </div><!-- .vbx-applet --> <div style="clear:both;"></div>
<div class="radio-table"> <table> <tr class="radio-table-row first <?php echo $dial_whom_selector === 'user-or-group' ? 'on' : 'off'; ?> "> <td class="radio-cell"> <input type="radio" class='dial-whom-selector-radio' name="dial-whom-selector" value="user-or-group" <?php echo $dial_whom_selector === 'user-or-group' ? 'checked="checked"' : ''; ?> /> </td> <td class="content-cell"> <h4>Dial a user or group</h4> <?php echo AppletUI::UserGroupPicker('dial-whom-user-or-group'); ?> </td> </tr> <tr class="radio-table-row last <?php echo $dial_whom_selector === 'number' ? 'on' : 'off'; ?> "> <td class="radio-cell"> <input type="radio" class='dial-whom-selector-radio' name="dial-whom-selector" value="number" <?php echo $dial_whom_selector === 'number' ? 'checked="checked"' : ''; ?> /> </td> <td class="content-cell"> <h4>Dial phone number</h4>
} $venue_options = AppletInstance::getValue('venue-options[]'); ?> <div class="vbx-applet 4sq-venue-applet"> <h2>FourSquare Options</h2> <p>To get the Venue ID for your favorite checkins, log in to foursquare.com, click on History and then click on the venue. You should see the URL your browser is pointed at looks like http://foursquare.com/venue/100281 and that 100281 is the Venue ID to use</p> <p>Click <a href="http://foursquare.com/history" target="_new">Here </a>to see your History</p> <h3>User Selection</h3> <p>Choose which VBX user to use for controlling this Applet with their 4sq checkins</p> <?php echo AppletUI::UserGroupPicker('4sq-venue-controller'); ?> <table class="vbx-menu-grid options-table"> <thead> <tr> <td>Venue ID</td> <td> </td> <td>Applet</td> <td>Add & Remove</td> </tr> </thead> <tfoot> <tr class="hide"> <td>
<?php $defaultWaitUrl = 'http://twimlets.com/holdmusic?Bucket=com.twilio.music.classical'; $waitUrl = AppletInstance::getValue('wait-url', $defaultWaitUrl); $musicOptions = array(array("url" => "http://twimlets.com/holdmusic?Bucket=com.twilio.music.classical", "name" => "Classical"), array("url" => "http://twimlets.com/holdmusic?Bucket=com.twilio.music.ambient", "name" => "Ambient"), array("url" => "http://twimlets.com/holdmusic?Bucket=com.twilio.music.electronica", "name" => "Electronica"), array("url" => "http://twimlets.com/holdmusic?Bucket=com.twilio.music.guitars", "name" => "Guitars"), array("url" => "http://twimlets.com/holdmusic?Bucket=com.twilio.music.rock", "name" => "Rock"), array("url" => "http://twimlets.com/holdmusic?Bucket=com.twilio.music.soft-rock", "name" => "Soft Rock")); ?> <div class="vbx-applet"> <h2>Moderator</h2> <p>If you set a moderator, callers are placed on hold until a moderator calls in from one of their configured devices.</p> <?php echo AppletUI::UserGroupPicker('moderator'); ?> <h2>Hold Music</h2> <p>Music is played until two or more people have dialed in, or until a moderator has joined.</p> <div class="vbx-full-pane"> <fieldset class="vbx-input-container"> <select name="wait-url" class="medium"> <?php foreach ($musicOptions as $option) { ?> <option value="<?php echo $option['url']; ?> " <?php echo $waitUrl == $option['url'] ? 'selected="selected"' : ''; ?> ><?php echo $option['name']; ?> </option>
foreach ($queries as $query) { if (trim($query)) { $ci->db->query($query); } } $lists = $ci->db->query(sprintf('SELECT id, name FROM subscribers_lists WHERE tenant = %d', $tenant_id))->result(); ?> <div class="vbx-applet"> <?php if (count($lists)) { ?> <div class="vbx-full-pane"> <h2>Dispatcher</h2> <p>If the message is from this group or user:</p> <?php echo AppletUI::UserGroupPicker('dispatcher'); ?> <h3>Dispatch it to: </h3> <fieldset class="vbx-input-container"> <select class="medium" name="list"> <?php foreach ($lists as $list) { ?> <option value="<?php echo $list->id; ?> "<?php echo $list->id == $selected ? ' selected="selected" ' : ''; ?> ><?php echo $list->name;
$category_options = AppletInstance::getValue('category_options[]'); $options = array("Arts & Entertainment", "College & Education", "Food", "Home / Work / Other", "Nightlife", "Parks & Outdoors", "Shops", "Travel"); ?> <div class="vbx-applet 4sq-cat-applet"> <h2>FourSquare Category Options</h2> <p>Choose a category, then choose an action to take if your last checkin matches that category.</p> <p>Click <a href="http://foursquare.com/history" target="_new">Here </a>to see your History</p> <h3>User Selection</h3> <p>Choose which VBX user to use for controlling this Applet with their 4sq checkins</p> <?php echo AppletUI::UserGroupPicker('4sq-cat-controller'); ?> <table class="vbx-menu-grid options-table"> <thead> <tr> <td>Category</td> <td> </td> <td>Applet</td> <td>Add & Remove</td> </tr> </thead> <tfoot> <tr class="hide"> <td> <fieldset class="vbx-input-container">
<?php $title = AppletInstance::getValue("title", ""); ?> <div class="vbx-applet menu-applet"> <h2>Chirbit Posting Options</h2> <h3>Select a Greeting to play before the caller leaves a recording</h3> <?php echo AppletUI::audioSpeechPicker('prompt'); ?> <h3>Set the title for your posts on Chirbit</h3> <input name="title" size="40" value="<?php echo $title; ?> " /> <h3>Choose the User whose credentials will be used for Chirbit</h3> <?php echo AppletUI::UserGroupPicker('chirbit-controller'); ?> <h3>Select a Greeting to play after the user leaves a recording</h3> <?php echo AppletUI::audioSpeechPicker('after');
<div class="vbx-applet"> <h2>Forward SMS Messages to</h2> <?php echo AppletUI::UserGroupPicker('forward'); ?> </div><!-- .vbx-applet -->