Пример #1
0
							
						</tbody>
                        
					</table>

				</td>
               
			</tr>
			<tr>
				<td align="center" colspan="2">
					<input type="submit" name="butt_save" id="butt_save" value="<?php 
echo _l('Save ' . _l('Report'));
?>
" class="submit_button save_button" />
					<?php 
if ((int) $report_id && module_report::can_i('delete', 'reports')) {
    ?>
					<input type="submit" name="butt_del" id="butt_del" value="<?php 
    echo _l('Delete');
    ?>
" class="submit_button delete_button" />
					<?php 
}
?>
					<input type="button" name="cancel" value="<?php 
echo _l('Cancel');
?>
" onclick="window.location.href='<?php 
echo module_report::link_open(false);
?>
';" class="submit_button" />
Пример #2
0
?>

<h2>
    <?php 
if (module_report::can_i('create', 'reports')) {
    ?>
	<span class="button">
		<?php 
    echo create_link("Add New " . _l('Report'), "add", module_report::link_open('new'));
    ?>
	</span>
    <?php 
}
?>
    <?php 
if (class_exists('module_import_export', false) && module_report::can_i('view', 'Import ' . _l('Reports'))) {
    $link = module_import_export::import_link(array('callback' => 'module_report::handle_import', 'name' => _l('Reports'), 'return_url' => $_SERVER['REQUEST_URI'], 'group' => 'report', 'fields' => array(_l('Report') . ' ID' => 'report_id', 'Report Title' => 'report_title', 'Sql' => 'notes'), 'extra' => array('owner_table' => 'report', 'owner_id' => 'report_id')));
    ?>
      <!--  <span class="button">
            <?php 
    echo create_link("Import " . _l('Reports'), "add", $link);
    ?>
        </span> -->
        <?php 
}
?>
	<?php 
echo _l('Reports');
?>
</h2>