<div class="vbx-applet"> <?php if (AppletInstance::getFlowType() == 'voice') { ?> <h2 class="start-heading">When a call begins, what should we do?</h2> <h3 class="start-instruct">Drag an applet from the right to get started.</h3> <?php } else { ?> <h2 class="start-heading">When an SMS message is received, <br />what should we do?</h2> <h3 class="start-instruct">Drag an applet from the right to get started.</h3> <?php } ?> <?php echo AppletUI::dropZone('next'); ?> </div><!-- .vbx-applet -->
<?php foreach ($keys as $i => $key) { ?> <tr> <td> <fieldset class="vbx-input-container"> <input class="keypress tiny" type="text" name="keys[]" value="<?php echo $key; ?> " autocomplete="off" /> </fieldset> </td> <td>then</td> <td> <?php echo AppletUI::dropZone('choices[' . $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>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>
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 -->
<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 -->
} ?> </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 -->
<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>
</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 -->
<div class="day"> <label>Sat</label> <select name="saturday[]"> <option name="saturday[]" value="false">Off</option> <option <?php if ($saturday == "true") { echo "selected"; } ?> name="saturday[]" value="true">On</option> </select> </div> </td> <td> <?php echo AppletUI::dropZone('choices[' . $b . ']', '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> <div class="more-settings"> <h3>More settings</h3>