1 <?php
defined('SYSPATH') or die('No direct script access.'); ?
>
3 <div style
="padding:30px">
5 <?php
echo _('You may upload a new widget as long as you meet the requirements below.') ?
><br
/><br
/>
7 <ul
class="upload_list">
8 <li
><?php
echo _('The widget must be a zip file') ?
></li
>
9 <li
><?php
echo _('It must contain all the required files') ?
></li
>
10 <li title
="<?php echo _('Click to show info') ?>"><a href
="" id
="dummy_href"><?php
echo _('It must contain a manifest file (xml)') ?
></a
></li
>
12 <div id
="xml_info" style
="display:none;padding-top:10px">
13 <?php
echo _('The xml file should contain the following info:'); ?
>
16 <
;?xml version
="1.0" encoding
="UTF-8"?
>
;
17 <
;!-- Manifest file
for widget to be used in Ninja4Nagios
-->
;
18 <
;widget_content
>
;
19 <
;author
>
;Your name
<
;/author
>
;
20 <
;version
>
;1.0<
;/version
>
;
21 <
;Friendly_name
>
;Display name of the widget
<
;/Friendly_name
>
;
22 <
;description
>
;Some info about your widget
<
;/description
>
; <
;!-- (This info is not shown anywhere today
) -->
;
23 <
;page
>
;tac
/index
<
;/page
>
; <
;!-- (only tac
/index supported
as of now
) -->
;
24 <
;/widget_content
>
;
27 <?php
echo _('The xml file should be placed in the root of the widget folder') ?
>
31 <?php
echo _('Use the form below to upload and install a new widget:') ?
><br
/><br
/>
33 echo form
::open_multipart('upload/handle_upload', array('id' => 'upload_form'));
34 echo form
::upload(array('id' => 'upload_file', 'name' => 'upload_file', 'type' => 'file'))."<br /><br />";
35 echo form
::submit('uploadbtn', 'Upload file');