当前位置: 首页>>代码示例>>PHP>>正文


PHP module_form::generate_form_actions方法代码示例

本文整理汇总了PHP中module_form::generate_form_actions方法的典型用法代码示例。如果您正苦于以下问题:PHP module_form::generate_form_actions方法的具体用法?PHP module_form::generate_form_actions怎么用?PHP module_form::generate_form_actions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在module_form的用法示例。


在下文中一共展示了module_form::generate_form_actions方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

    if ($val == $ticket_id) {
        $prev_ticket = $temp_prev ? $temp_prev : true;
    }
    $temp_prev = $val;
}
$form_actions = array('class' => 'action_bar action_bar_center action_bar_single', 'elements' => array(array('type' => 'save_button', 'name' => 'butt_save', 'value' => _l('Save details')), array('ignore' => !((int) $ticket_id && module_ticket::can_i('delete', 'Tickets')), 'type' => 'delete_button', 'name' => 'butt_del', 'value' => _l('Delete')), array('type' => 'button', 'name' => 'cancel', 'value' => _l('Cancel'), 'class' => 'submit_button', 'onclick' => "window.location.href='" . module_ticket::link_open(false) . "';")));
if ((int) $ticket_id && module_ticket::can_edit_tickets()) {
    $form_actions['elements'][] = array('type' => 'submit', 'name' => 'mark_as_unread', 'value' => _l('Mark as unread'));
}
if ($prev_ticket && $prev_ticket !== true) {
    array_unshift($form_actions['elements'], array('type' => 'button', 'onclick' => "window.location.href='" . module_ticket::link_open($prev_ticket) . "';", 'name' => 'prev_ticket', 'value' => _l('Prev Ticket')));
}
if ($next_ticket) {
    $form_actions['elements'][] = array('type' => 'button', 'onclick' => "window.location.href='" . module_ticket::link_open($next_ticket) . "';", 'name' => 'next_ticket', 'value' => _l('Next Ticket'));
}
$action_buttons = module_form::generate_form_actions($form_actions);
?>



<script type="text/javascript">
    ucm.ticket.ticket_message_text_is_html = <?php 
echo module_config::c('ticket_message_text_or_html', 'html') == 'html' ? 'true' : 'false';
?>
;
    ucm.ticket.ticket_url = '<?php 
echo module_ticket::link_open($ticket_id, false);
?>
';
    $(function(){
        ucm.ticket.init();
开发者ID:sgh1986915,项目名称:php-crm,代码行数:31,代码来源:ticket_admin_edit.php

示例2: htmlspecialchars

        echo '<strong>{' . htmlspecialchars($key) . '}</strong>';
        if ($val && !is_array($val)) {
            echo ' ' . htmlspecialchars($val);
        }
        echo '</li>';
    }
} else {
}
?>

	        </ul>
            <br/><br/>

        </td>
    </tr>


    </tbody>
</table>

    <?php 
$fieldset_data = array('heading' => array('type' => 'h2', 'main' => true, 'title' => 'Edit Template'), 'elements_before' => ob_get_clean());
echo module_form::generate_fieldset($fieldset_data);
unset($fieldset_data);
$form_actions = array('class' => 'action_bar action_bar_center', 'elements' => array(array('type' => 'save_button', 'name' => 'butt_save', 'value' => _l('Save')), array('ignore' => !(module_template::can_i('delete', 'Templates') && (int) $template_id > 0), 'type' => 'delete_button', 'name' => 'butt_del', 'value' => _l('Delete')), array('type' => 'button', 'name' => 'cancel', 'value' => _l('Cancel'), 'class' => 'submit_button', 'onclick' => "window.location.href='" . $module->link('template', array('template_id' => false)) . "';")));
echo module_form::generate_form_actions($form_actions);
?>


</form>
开发者ID:sgh1986915,项目名称:php-crm,代码行数:30,代码来源:template_edit.php

示例3: set_add_del

		                                    </small></div>
		                                    <?php 
                                        }
                                    }
                                    ?>
		                        </div>
		                        <?php 
                                }
                                ?>

		                    </div>
		                    <script type="text/javascript">
		                        set_add_del('license_codes_holder');
		                    </script>
		                    <?php 
                            })), array('message' => _l('To complete a previously started/failed upgrade please click the "Run Manual Upgrades" button.'))), 'elements_after' => module_form::generate_form_actions($form_actions));
                            $url = module_config::c('ucm_upgrade_url', 'http://api.ultimateclientmanager.com/upgrade.php');
                            if ($url != 'http://ultimateclientmanager.com/api/upgrade.php' && $url != 'http://api.ultimateclientmanager.com/upgrade.php') {
                                $fieldset_data['elements_before'] = '<div class="error_text text-center">Warning, "ucm_upgrade_url" setting is incorrect. Please contact <a href="http://ultimateclientmanager.com/support/support-ticket/">Support</a></div>';
                            }
                            echo module_form::generate_fieldset($fieldset_data);
                            unset($fieldset_data);
                            ?>
	    </form>

	<?php 
                            hook_handle_callback('layout_column_half', 2);
                            if (!isset($setup_upgrade_hack) && module_config::c('upgrade_page_show_extra_info', 1)) {
                                $fieldset_data = array('heading' => array('title' => 'Latest News', 'type' => 'h3'), 'elements_before' => '<iframe src="//ultimateclientmanager.com/api/info.php?codes=' . htmlspecialchars(module_config::c('_installation_code')) . '" frameborder="0" style="width:100%; height:600px; background: transparent" ALLOWTRANSPARENCY="true"></iframe>');
                                echo module_form::generate_fieldset($fieldset_data);
                                unset($fieldset_data);
开发者ID:sgh1986915,项目名称:php-crm,代码行数:31,代码来源:config_upgrade.php


注:本文中的module_form::generate_form_actions方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。