print html_abs_image(util_make_url ('/plugins/mediawiki/wiki/'.$project->getUnixName().'/skins/fusionforge/wiki.png'),'20','20',array('alt'=>'Mediawiki'));
print ' Mediawiki';
print '</a>';
+ echo '</div>';
}
- } elseif ($hookname == "blahblahblah") {
- // ...
- }
+ } elseif ($hookname == "role_get") {
+ $role =& $params['role'] ;
+
+ $edit = new PluginSpecificRoleSetting ($role,
+ 'plugin_mediawiki_edit') ;
+ $edit->SetAllowedValues (array ('0', '1', '2')) ;
+ $edit->SetDefaultValues (array ('Admin' => '2',
+ 'Senior Developer' => '2',
+ 'Junior Developer' => '1',
+ 'Doc Writer' => '2',
+ 'Support Tech' => '0')) ;
+ } elseif ($hookname == "role_normalize") {
+ $role =& $params['role'] ;
+ $new_sa =& $params['new_sa'] ;
+
+ $role->normalizeDataForSection ($new_sa, 'plugin_mediawiki_edit') ;
+ } elseif ($hookname == "role_translate_strings") {
+ $edit = new PluginSpecificRoleSetting ($role,
+ 'plugin_mediawiki_edit') ;
+ $edit->setDescription (_('Mediawiki write access')) ;
+ $edit->setValueDescriptions (array ('0' => _('No editing'),
+ '1' => _('Edit existing pages only'),
+ '2' => _('Edit and create pages'))) ;
+ }
}
-}
+ }
// Local Variables:
// mode: php
<tr><td colspan="2">
<?php if (session_loggedin() && ($ah->getSubmittedBy() == user_getid())) { ?>
<strong><?php echo _('Attach Files'); ?></strong><br />
- <input type="file" name="input_file[]" size="30" /><br />
- <input type="file" name="input_file[]" size="30" /><br />
- <input type="file" name="input_file[]" size="30" /><br />
- <input type="file" name="input_file[]" size="30" /><br />
- <input type="file" name="input_file[]" size="30" /><br />
+ <input type="file" name="input_file0" size="30" /><br />
+ <input type="file" name="input_file1" size="30" /><br />
+ <input type="file" name="input_file2" size="30" /><br />
+ <input type="file" name="input_file3" size="30" /><br />
+ <input type="file" name="input_file4" size="30" /><br />
- <p>
+ <p />
<?php } ?>
- <h3><?php echo _('Attached Files') ?>:</h3>
+ <h2><?php echo _('Attached Files') ?>:</h2>
<?php
//
// print a list of files attached to this Artifact