コード例 #1
0
    echo string_display_line(project_get_name($v_project_id, false));
    ?>
			</td>
			<td>
				<?php 
    echo string_display_line($v_config_id);
    ?>
			</td>
			<td class="center">
				<?php 
    echo string_display_line(get_config_type($v_type));
    ?>
			</td>
			<td class="left">
				<?php 
    print_config_value_as_string($v_type, $v_value);
    ?>
			</td>
			<td class="center">
				<?php 
    echo get_enum_element('access_levels', $v_access_reqd);
    ?>
			</td>
			<td class="center">
				<?php 
    if (config_can_delete($v_config_id)) {
        print_button("adm_config_delete.php?user_id={$v_user_id}&project_id={$v_project_id}&config_option={$v_config_id}", lang_get('delete_link'));
    } else {
        echo '&#160;';
    }
    ?>
コード例 #2
0
        print_option_list_from_array($t_config_types, $t_edit_type);
        ?>
					</select>
				</span>
				<span class="label-style"></span>
			</div>

			<!-- Option Value -->
			<div class="field-container">
				<label for="config-value"><span><?php 
        echo lang_get('configuration_option_value');
        ?>
</span></label>
				<span class="textarea">
					<textarea name="value" cols="80" rows="10"><?php 
        print_config_value_as_string($t_edit_type, $t_edit_value, false);
        ?>
</textarea>
				</span>
				<span class="label-style"></span>
			</div>

			<!-- Submit button -->
			<span class="submit-button"><input type="submit" name="config_set" class="button" value="<?php 
        echo lang_get('set_configuration_option');
        ?>
" /></span>
		</fieldset>
	</form>
</div>
<?php 
コード例 #3
0
			<th class="center"><?php echo lang_get( 'configuration_option_value' ) ?></th>
			<th class="center"><?php echo lang_get( 'access_level' ) ?></th>
			<?php if ( $t_read_write_access ): ?>
			<th class="center"><?php echo lang_get( 'actions' ) ?></th>
			<?php endif; ?>
		</tr><?php
		while ( $row = db_fetch_array( $result ) ) {
			extract( $row, EXTR_PREFIX_ALL, 'v' ); ?>
		<tr <?php echo helper_alternate_class() ?>>
			<td class="center">
				<?php echo ($v_user_id == 0) ? lang_get( 'all_users' ) : string_display_line( user_get_name( $v_user_id ) ) ?>
			</td>
			<td class="center"><?php echo string_display_line( project_get_name( $v_project_id, false ) ) ?></td>
			<td><?php echo string_display_line( $v_config_id ) ?></td>
			<td class="center"><?php echo string_display_line( get_config_type( $v_type ) ) ?></td>
			<td class="left"><?php print_config_value_as_string( $v_type, $v_value ) ?></td>
			<td class="center"><?php echo get_enum_element( 'access_levels', $v_access_reqd ) ?></td>
			<?php if ( $t_read_write_access ): ?>
			<td class="center">
				<?php
					if ( config_can_delete( $v_config_id ) ) {
						print_button( "adm_config_delete.php?user_id=$v_user_id&project_id=$v_project_id&config_option=$v_config_id", lang_get( 'delete_link' ) );
					} else {
						echo '&#160;';
					}
				?>
			</td>
			<?php endif; ?>
		</tr><?php
		} # end for loop ?>
	</table>