echo content_tag('label', checkbox_tag('customlegend', 'customlegend', false, array('id' => 'inserted_image_customlegend', 'onclick' => 'C2C.doUpdateImageLegend();')) . ' ' . __('Custom legend')) . ' ' . input_tag('legend', $associated_images[0]['name'], array('id' => 'inserted_image_legend', 'class' => 'medium_input', 'disabled' => 'disabled')); ?> </p> <p> <?php echo __('Alignment') . ' ' . content_tag('label', radiobutton_tag('inserted_image_alignment', 'right', 1, array('id' => 'alignment1')) . ' ' . __('right')) . ' ' . content_tag('label', radiobutton_tag('inserted_image_alignment', 'left', 0, array('id' => 'alignment2')) . ' ' . __('left')) . ' ' . content_tag('label', radiobutton_tag('inserted_image_alignment', 'center', 0, array('id' => 'alignment3')) . ' ' . __('center')) . ' ' . content_tag('label', radiobutton_tag('inserted_image_alignment', 'inline', 0, array('id' => 'alignment4')) . ' ' . __('inline')); echo '</p><p>'; echo content_tag('label', __('hideborderlegend') . ' ' . checkbox_tag('hideborderlegend', 'hideborderlegend', false, array('id' => 'inserted_image_hideborderlegend'))); ?> </p> </fieldset> </div> <?php echo input_hidden_tag('inserted_image_id', $associated_images[0]['id']) . input_hidden_tag('inserted_image_div', $div); ?> </form> <ul class="action_buttons"> <li><?php echo button_tag(__('Insert'), array('onclick' => 'C2C.doInsertImgTag()', 'picto' => 'action_create')); ?> </li> <li><?php echo button_tag(__('Cancel'), array('onclick' => '$.modalbox.hide();', 'picto' => 'action_cancel')); ?> </li> </ul> <?php } ?> <div>
echo input_tag('switch[]', null, array('type' => 'checkbox', 'value' => "{$image_id}", 'id' => 'switch_' . $image_id)) . link_to(__('Details'), $image_route, array('class' => 'toto')); ?> </div> </div> <?php } ?> <div style="clear:both"><?php echo input_hidden_tag('page', $page); echo $pager_navigation; ?> </div> <ul class="action_buttons"> <li><?php echo c2c_submit_tag(__('Switch license'), array('picto' => 'action_edit')); ?> </li> <li><?php echo button_tag(__('Select all'), array('onclick' => "\$('#editform .manageimages_info input[type=checkbox]').prop('checked', true);", 'picto' => 'action_create', 'title' => __('Select all'))); ?> </li> <li><?php echo button_tag(__('Deselect all'), array('onclick' => "\$('#editform .manageimages_info input[type=checkbox]').prop('checked', false);", 'picto' => 'action_rm', 'title' => __('Deselect all'))); ?> </li> </ul> </form> <?php } echo end_content_tag(); include_partial('common/content_bottom');
public static function boton($texto, $onclick = "") { $params = is_array($texto) ? $texto : Util::getParams(func_get_args()); $params["value"] = $params[0]; $params["onclick"] = $onclick; return button_tag($params); }
code += " div : \"c2cwidget\",\n", code += " title : \"" + $('#wgt_title').val() + "\",\n"; code += " module : \"<?php echo $sf_request->getParameter('mod'); ?> \",\n"; code += " params : \"<?php echo $paramstring; ?> \"\n"; code += " };\n"; code += " var js = d.createElement(t), fjs = d.getElementsByTagName(t)[0];\n"; code += " js.async = 1; js.src = 'https://s.camptocamp.org/static/js/widget.js';\n"; code += " fjs.parentNode.insertBefore(js, fjs);\n" code += "} (document, 'script', window));\n"; code += "</script>"; $('#wgt_code').val($('textarea').html(code).text()); } $('#wgt_title').keyup(updateWidgetCode); updateWidgetCode(); })(); </script> <ul class="action_buttons"> <li><?php echo button_tag('Close', __('Close'), array('onclick' => '$.modalbox.hide();', 'class' => 'picto action_cancel', 'title' => null)); ?> </li> </ul>