$formData = array(); switch ($this->REQUEST_METHOD) { case 'GET': $formData = $this->GET; break; case 'POST': $formData = $this->POST; break; } foreach ($formData as $key => $val) { if (is_array($val)) { foreach ($val as $subKey => $subVal) { echo htmlBup::hidden($key . '[' . $subKey . ']', array('value' => $subVal)); } } else { echo htmlBup::hidden($key, array('value' => $val)); } } ?> <table width="100%"> <tr> <td><?php _e('Delete Plugin Data (options, setup data, database tables, etc.)', BUP_LANG_CODE); ?> :</td> <td><?php echo htmlBup::radiobuttons('deleteOptions', array('options' => array('No', 'Yes'))); ?> </td> </tr> </table>
<div class="bupMargDest"> <?php echo htmlBup::radiobutton('dest_opt', array('attrs' => 'class="' . $not_piad . '"', 'value' => 'amazon', 'checked' => frameBup::_()->getModule('options')->get('glb_dest') == 'amazon' ? 'checked' : '')); ?> Amazon S3 </div> <div class="bupMargDest"> <?php echo htmlBup::radiobutton('dest_opt', array('attrs' => 'class="' . $not_piad . '"', 'value' => 'onedrive', 'checked' => frameBup::_()->getModule('options')->get('glb_dest') == 'onedrive' ? 'checked' : '')); ?> Microsoft OneDrive </div> <div> <?php echo htmlBup::hidden('reqType', array('value' => 'ajax')); ?> <?php echo htmlBup::hidden('page', array('value' => 'options')); ?> <?php echo htmlBup::hidden('action', array('value' => 'saveMainFromDestGroup')); ?> <?php echo htmlBup::submit('saveAll', array('value' => langBup::_('Save'), 'attrs' => 'class="button button-primary button-large"')); ?> </div> <div id="bupMainFormOptionsMsg"></div> </form> </div>
<li>Backup in archive</li> <li>Restore backups anywhere</li> </ul> <p>So check full features list <a target="_blank" href="http://readyshoppingcart.com/wordpress-backup-plugin/">here</a>.</p> </div> <div class="clear"></div> <?php echo htmlBup::hidden('page', array('value' => 'promo_ready')); ?> <?php echo htmlBup::hidden('action', array('value' => 'bupSendInfo')); ?> <?php echo htmlBup::hidden('reqType', array('value' => 'ajax')); ?> <?php echo htmlBup::submit('gonext', array('value' => 'Thank for check info. Start using plugin.', 'attrs' => 'class="button button-primary button-hero"')); ?> <?php echo htmlBup::hidden('original_page', array('value' => reqBup::getVar('page'))); ?> <!-- <a class="button button-primary button-hero bupSendInfo" href="javascript:void(0)">Thank for check info. Start using plugin.</a>--> <span id="bupWelcomePageFindUsMsg"></span> </form> </div> </div>
</p> <?php } ?> <div id="BUP_MESS_MAIN"></div> <table width="100%"> <tr class="cspAdminOptionRow cspTblRow"> <td style="padding-left: 0"> <?php echo htmlBup::hidden('reqType', array('value' => 'ajax')); ?> <?php echo htmlBup::hidden('page', array('value' => 'backup')); ?> <?php echo htmlBup::hidden('action', array('value' => 'createAction')); ?> <?php $attrs = array('class="button button-primary button-large" style="margin-right: 10px;"'); $style = ''; ?> <?php if (defined('BUP_LOCK_FIELD') && get_option(BUP_LOCK_FIELD) == 1) { ?> <?php $attrs[] = 'style="display:none;"'; ?> <?php } else { ?> <?php
/** * Function to display userfields in front-end * * @param string $name * @param mixed $fieldValue * @return string */ public function viewField($name, $fieldValue = '') { $method = $this->html; $options = frameBup::_()->getModule('optionsBup')->getHelper()->getOptions($this->id); $attrs = ''; if (is_object($this->htmlParams['attr']) && count($this->htmlParams['attr']) > 0) { foreach ($this->htmlParams['attr'] as $attribute => $value) { if ($value != '') { $attrs .= $attribute . '="' . $value . '" '; } } } if ($fieldValue == $this->default_value) { $checked = 1; } else { $checked = 0; } if ($fieldValue == '') { $fieldValue = $this->default_value; } $params = array('optionsBup' => $options, 'attrs' => $attrs, 'value' => $fieldValue, 'checked' => $checked); $output = ''; if (method_exists('htmlBup', $method)) { $output .= htmlBup::$method($name, $params); $output .= htmlBup::hidden('extra_field[' . $this->name . ']', array('value' => $this->id)); } return $output; }
</div> </fieldset> </div> </div> </div> </div> </div> <div> <?php echo htmlBup::hidden('reqType', array('value' => 'ajax')); ?> <?php echo htmlBup::hidden('page', array('value' => 'schedule')); ?> <?php echo htmlBup::hidden('action', array('value' => 'saveGroupEvery')); ?> <?php echo htmlBup::submit('saveAllEvery', array('value' => langBup::_('Save All Changes'), 'attrs' => 'class="button button-primary button-large"')); ?> </div> <div id="bupAdminScheduleMsg"></div> </div> </div> </form>
echo htmlBup::checkbox('__toggleWarehouseAbs', array('attrs' => 'class="bupCheckbox wareabs" id="warehouseToggle"', 'checked' => frameBup::_()->getModule('options')->get('warehouse_abs') == 1 ? 'checked' : '')); ?> <div <input type="hidden" value="<?php echo frameBup::_()->getModule('options')->get('warehouse_abs'); ?> " name="opt_values[warehouse_abs]"> </td> </tr> <tr> <td> <i class="fa fa-question supsystic-tooltip" title="<?php _e('Path to directory, where will be stored backup files.', BUP_LANG_CODE); ?> "></i> <span id="abspath"><?php echo ABSPATH; ?> </span><wbr><span id="realpath"></span> </td> </tr> </table> </div> <?php echo htmlBup::hidden('backupDest', array('value' => $this->backupDest)); ?> <div id="bupMainFormOptionsMsg"></div> </div> </form> </div>
<td> <?php echo htmlBup::$htmlType($fName, $htmlParams); ?> </td> </tr> <?php } ?> <tr> <th scope="row" colspan="2"> <?php echo htmlBup::hidden('mod', array('value' => 'supsystic_promo')); ?> <?php echo htmlBup::hidden('action', array('value' => 'sendContact')); ?> <button class="button button-primary button-hero" style="float: right;"> <i class="fa fa-upload"></i> <?php _e('Send email', BUP_LANG_CODE); ?> </button> <div style="clear: both;"></div> </th> </tr> </table> </form> <div id="form-settings-send-msg" style="display: none;"> <i class="fa fa-envelope-o"></i> <?php