本文整理汇总了PHP中module_form::generate_fieldset方法的典型用法代码示例。如果您正苦于以下问题:PHP module_form::generate_fieldset方法的具体用法?PHP module_form::generate_fieldset怎么用?PHP module_form::generate_fieldset使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类module_form
的用法示例。
在下文中一共展示了module_form::generate_fieldset方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: uasort
echo 'col-lg-12';
break;
}
?>
connectedSortable">
<?php
uasort($column_widgets, function ($a, $b) {
return $a['page_order'] > $b['page_order'];
});
foreach ($column_widgets as $column_widget) {
if (isset($column_widget['raw']) && $column_widget['raw']) {
$widget_html = $column_widget['content'];
} else {
// wrap it in a widget block:
$fieldset_data = array('id' => 'widg_' . $column_widget['sort_id'], 'heading' => array('type' => 'h3', 'title' => $column_widget['title']), 'class' => 'tableclass tableclass_form tableclass_full', 'elements_before' => $column_widget['content']);
$widget_html = module_form::generate_fieldset($fieldset_data);
unset($fieldset_data);
}
$widget_html = preg_replace('#^\\s+<\\w+\\s#imsU', '$0 data-sort-id="' . $column_widget['sort_id'] . '"', $widget_html, 1);
echo '<!-- asdf -->' . $widget_html;
}
?>
</section>
<?php
}
?>
</div>
<?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>
示例3: display_groups
//.........这里部分代码省略.........
echo $group_id;
?>
]" id="groupchk<?php
echo $owner_table . $group_id;
?>
" value="<?php
echo htmlspecialchars($owner_id);
?>
" <?php
echo isset($group_item['checked']) && $group_item['checked'] ? ' checked' : '';
?>
>
<?php
} else {
?>
<input type="checkbox" name="group" value="<?php
echo htmlspecialchars($owner_id);
?>
" <?php
echo isset($group_item['checked']) && $group_item['checked'] ? ' checked' : '';
?>
disabled="">
<?php
}
?>
</th>
<td>
<label for="groupchk<?php
echo $owner_table . $group_id;
?>
"><?php
echo htmlspecialchars($group_item['name']);
?>
</label>
</td>
</tr>
<?php
}
if ($can_create && module_security::is_page_editable() && get_display_mode() != 'mobile') {
$group_id = 'new';
?>
<tr id="group_<?php
echo $group_id;
?>
">
<th class="width1">
<input type="hidden" name="group_module[<?php
echo $owner_table;
?>
][<?php
echo $group_id;
?>
]" value="<?php
echo htmlspecialchars($owner_id);
?>
">
<input type="checkbox" name="used_group_module[<?php
echo $owner_table;
?>
][<?php
echo $group_id;
?>
]" id="groupchk<?php
echo $owner_table . $group_id;
?>
" value="<?php
echo htmlspecialchars($owner_id);
?>
">
</th>
<td>
<label for="groupchk<?php
echo $owner_table . $group_id;
?>
"></label>
<input type="text" name="group_module_name[<?php
echo $owner_table;
?>
][<?php
echo $group_id;
?>
]" autocomplete="off">
</td>
</tr>
<?php
}
?>
</tbody>
</table>
<?php
//</div>
$fieldset_data['elements_before'] = ob_get_clean();
echo module_form::generate_fieldset($fieldset_data);
}
//print $html;
}