?>
</option>
<?php 
    }
    ?>
				</select>
		</fieldset>
	</div>
	<h2>Members</h2>
	<div class="vbx-full-pane">
		<?php 
    echo AppletUI::DropZone('pass');
    ?>
	</div>
	<h2>Non-members</h2>
	<div class="vbx-full-pane">
		<?php 
    echo AppletUI::DropZone('fail');
    ?>
	</div>
<?php 
} else {
    ?>
	<div class="vbx-full-pane">
		<h3>You need to create a subscription list first.</h3>
	</div>
<?php 
}
?>
</div>
Exemplo n.º 2
0

<div class="vbx-applet openvbx-zendesk-applet">
    <h2>This applet creates a ticket in ZenDesk for calls</h2>
    <p>Enter in the URL subdomain you use for Desk</p>
    <textarea class="small" name="subdomain"><?php 
echo AppletInstance::getValue('subdomain');
?>
</textarea>
    <p>Enter in the ZenDesk API Token</p>
    <textarea class="small" name="apitoken"><?php 
echo AppletInstance::getValue('apitoken');
?>
</textarea>
   <p>Enter in the email address</p>
    <textarea class="small" name="email"><?php 
echo AppletInstance::getValue('email');
?>
</textarea>

 <br />
    <h2> Select An Action for The Caller</h2>
    <?php 
echo AppletUI::DropZone('primary');
?>
</div>

Exemplo n.º 3
0
			<a href="#" class="timing-<?php 
        echo $state;
        ?>
"><?php 
        echo $state;
        ?>
</a>
			<br class="clear"/>
		</div>
<?php 
    }
    ?>
	</div>

	<h3>Open applet.</h3>
	<div class="vbx-full-pane">
		<p>When someone calls or SMS while open, use the applet below.</p>
		<?php 
    echo AppletUI::DropZone('open', 'Open');
    ?>
	</div>
	<h3>Closed applet.</h3>
	<div class="vbx-full-pane">
		<p>When someone calls or SMS while closed, use the applet below.</p>
		<?php 
    echo AppletUI::DropZone('closed', 'Closed');
    ?>
	</div>
</div>
<?php 
}
Exemplo n.º 4
0
		<h3>Do you want to repeat the menu back?</h3>
		<div class="vbx-full-pane">
			<p>Repeat the menu back to the caller.  Enter zero if you do not want the menu to repeat.</p>
			<fieldset class="vbx-input-complex vbx-input-container">
				<input type="text" name="repeat-count" class="left tiny" value="<?php 
echo AppletInstance::getValue('repeat-count', 3);
?>
" />
				<label class="field-label-left">time(s)</label>
			</fieldset>
		</div>

		<h3>When the caller didn't enter anything after the menu...</h3>
		<div class="vbx-full-pane">
			<fieldset class="vbx-input-complex vbx-input-container">
				<p>Redirect the caller to another applet.</p>
				<?php 
echo AppletUI::DropZone('next');
?>
			</fieldset>
		</div><!-- .vbx-split-pane -->

		<h3>Oops! The caller didn't enter something right.</h3>
		<p>Customize a specific message about the invalid option.</p>
		<?php 
echo AppletUI::audioSpeechPicker('invalid-option');
?>
    	<br />
		
</div><!-- .vbx-applet -->
Exemplo n.º 5
0
    echo $key;
    ?>
" autocomplete="off" />
						</fieldset>
					</td>
					<td>then</td>
					<td>
						<?php 
    echo AppletUI::dropZone('responses[' . $i . ']', 'Drop applet here');
    ?>
					</td>
					<td>
						<a href="" class="add action"><span class="replace">Add</span></a> <a href="" class="remove action"><span class="replace">Remove</span></a>
					</td>
				</tr>
				<?php 
}
?>
			</tbody>
		</table><!-- .vbx-menu-grid -->
		<h3>Oops! The message text didn't match any of our choices.</h3>
		<p>What should we do?</p>
		<?php 
echo AppletUI::dropZone('invalid-option');
?>
    	<br />
</div><!-- .vbx-applet -->


	
Exemplo n.º 6
0
<div class="vbx-applet">

		<h2>Forward SMS Messages to</h2>
		<?php 
echo AppletUI::UserGroupPicker('forward');
?>

</div><!-- .vbx-applet -->
Exemplo n.º 7
0
							<input class="keypress small" size="10" type="text" name="venues[]" value="<?php 
    echo $venue;
    ?>
" autocomplete="off" />
						</fieldset>
					</td>
					<td>then</td>
					<td>
						<?php 
    echo AppletUI::dropZone('venue-options[' . $i . ']', 'Drop item here');
    ?>
					</td>
					<td>
						<a href="" class="add action"><span class="replace">Add</span></a> <a href="" class="remove action"><span class="replace">Remove</span></a>
					</td>
				</tr>
				<?php 
}
?>
			</tbody>
		</table><!-- .vbx-menu-grid -->

		<h3>Default Action</h3>
		<p>When your last checkin is not in the list above, then what?</p>
		<?php 
echo AppletUI::dropZone('no-venue-default-action');
?>
    	<br />

</div><!-- .vbx-applet -->
Exemplo n.º 8
0
<?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>
Exemplo n.º 9
0
					<input type="radio" class='no-answer-action-radio' name="no-answer-action" value="redirect" <?php 
echo $no_answer_action === 'redirect' ? 'checked="checked"' : '';
?>
 />
				</td>
				<td class="content-cell" style="vertical-align: middle;">
					<table><tr style="border-bottom-width: 0px;">
						<td align="left" style="vertical-align: middle;"><h4>Go to</h4></td>
						<td align="right">
							<?php 
echo AppletUI::DropZone('no-answer-redirect');
?>
						</td>
					</tr></table>
				</td>
			</tr>
		</table>
	</div>
	<div class="vbx-full-pane nobody-answers-number <?php 
echo $dial_whom_selector === 'number' ? '' : 'hide';
?>
">
		<?php 
echo AppletUI::DropZone('no-answer-redirect-number');
?>
	</div>
												
	<!-- Set the version of this applet -->
	<input type="hidden" name="version" value="3" />
</div><!-- .vbx-applet -->
Exemplo n.º 10
0
    }
    ?>
	</select>
						</fieldset>
					</td>
					<td>then</td>
					<td>
						<?php 
    echo AppletUI::dropZone('category_options[' . $i . ']', 'Drop item here');
    ?>
					</td>
					<td>
						<a href="" class="add action"><span class="replace">Add</span></a> <a href="" class="remove action"><span class="replace">Remove</span></a>
					</td>
				</tr>
				<?php 
}
?>
			</tbody>
		</table><!-- .vbx-menu-grid -->

		<h3>Default Action</h3>
		<p>When your last checkin is not in the list above, then what?</p>
		<?php 
echo AppletUI::dropZone('4sq-cat-default-action');
?>
    	<br />

</div><!-- .vbx-applet -->

Exemplo n.º 11
0
		<h3>Query URL:</h3>
		<br />
		<div class="vbx-full-pane">
			<input class="curling_url medium" name="url" value="<?php 
echo $url;
?>
"/>
			<!--<a href="#" onclick="return false" class="normal-button" id="curling_url_test"><span>Test URL Query</span></a>-->
			<br />
		</div>
		</fieldset>
		<div id="curl_result"></div>
		<h3>After reading the result...</h3>
		<br />
		<div class="vbx-full-pane">
			<?php 
echo AppletUI::dropZone('next');
?>
		</div>
	</div>
	
	<div class="more-settings">
		<h3>If it doesn't work...</h3>
	    <br />
		<div class="vbx-full-pane">
	        <?php 
echo AppletUI::DropZone('fallback');
?>
		</div>
	</div>
</div>
Exemplo n.º 12
0
<?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');
Exemplo n.º 13
0
<div class="vbx-applet">
  <h2 class="settings-title">Dopplr: Geo Route</h2>
  <p>This is a basic logic building block based on the smart traveller's location'.</p>
  <h3>in transit</h3>
  <div class="vbx-full-pane">
    <?php 
echo AppletUI::dropZone('in_transit', 'Drop applet here');
?>
  </div>
  <h3>on the road</h3>
  <div class="vbx-full-pane">
    <?php 
echo AppletUI::dropZone('on_the_road', 'Drop applet here');
?>
  </div>
  <h3>at home</h3>
  <div class="vbx-full-pane">
    <?php 
echo AppletUI::dropZone('at_home', 'Drop applet here');
?>
  </div>
</div>
Exemplo n.º 14
0
	<h3>Search Prompt</h3>
	<p>When the caller reaches this menu they will hear this prompt:</p>
	<?php 
echo AppletUI::audioSpeechPicker('searchMenu');
?>
	<h3>Menu Prompt</h3>
	<p>The caller can select a user from the menu, or dial 0 to try again. Before the user menu is played, play this prompt:</p>
	<?php 
echo AppletUI::audioSpeechPicker('dirMenu');
?>
	<h3>No Matches</h3>
	<p>Select a message to play when no users are found, before the process is restarted.</p>
	<?php 
echo AppletUI::audioSpeechPicker('nomatchMessage');
?>
	<h3>Restart Search</h3>
	<p>The caller dialed 0 to restart the search, customize this message.</p>
	<?php 
echo AppletUI::audioSpeechPicker('restartMessage');
?>
	<h3>Invalid Selection</h3>
	<p>Customize a specific message about the invalid selection.</p>
	<?php 
echo AppletUI::audioSpeechPicker('invalidMessage');
?>
	<h3>Error Message</h3>
	<p>Pick a message to notify the caller an error occurred before the process is restarted.</p>
	<?php 
echo AppletUI::audioSpeechPicker('errorMessage');
?>
</div>
Exemplo n.º 15
0
    } else {
        ?>
		<p>Use %sender% to substitute the sender's number, %number% for the number texted or %body% for the message body.</p>
<?php 
    }
    ?>
		<fieldset class="vbx-input-container">
			<textarea name="sms" class="medium"><?php 
    echo AppletInstance::getValue('sms');
    ?>
</textarea>
		</fieldset>
	</div>
	<h2>Next</h2>
	<p>After sending the message, continue to the next applet</p>
	<div class="vbx-full-pane">
		<?php 
    echo AppletUI::DropZone('next');
    ?>
	</div>
<?php 
} else {
    ?>
	<div class="vbx-full-pane">
		<h3>You do not have any phone numbers!</h3>
	</div>
<?php 
}
?>
</div>
Exemplo n.º 16
0
	</div><!-- .vbx-split-pane -->

	<h3>Limit</h3>
	<div class="vbx-full-pane">
		<fieldset class="vbx-input-container">
			<p>Phone numbers exceeding this limit within the duration will be blocked</p>
			<textarea name="limit" placeholder='10'><?php 
echo AppletInstance::getValue('limit');
?>
</textarea>
		</fieldset>
	</div><!-- .vbx-split-pane -->
	
	<h2>Next</h2>
	<p>Go to the next applet if the number hasn't exceeded the limit</p>
	<div class="vbx-full-pane">
		<?php 
echo AppletUI::DropZone('unblocked');
?>
	</div><!-- .vbx-full-pane -->

	<h2>Next - if limit exceeds</h2>
	<p>Go to the next applet if the number has exceeded the limit</p>
	<div class="vbx-full-pane">
		<?php 
echo AppletUI::DropZone('blocked');
?>
	</div><!-- .vbx-full-pane -->

</div><!-- .vbx-applet -->
Exemplo n.º 17
0
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> 
Exemplo n.º 18
0
		</tr>
		<?php 
}
?>
	</tbody>
	<tfoot>
		<tr class="hide">
			<td>
				<fieldset class="vbx-input-container">
					<input class="keypress" type="text" name="new-keys[]" value="" autocomplete="off" />
				</fieldset>
			</td>
			<td>then</td>
			<td>
				<?php 
echo AppletUI::dropZone('new-choices[]', 'Drop item here');
?>
			</td>
			<td>
				<a href="" class="add action"><span class="replace">Add</span></a></a>
			</td>
		</tr>
	</tfoot>
	</table><!-- .vbx-callerid-grid -->
	<h3>Oops!</h3>
	<p>When the caller ID is not in the above list</p>
	<?php 
echo AppletUI::dropZone('invalid');
?>
	<br />
</div><!-- .vbx-applet -->