예제 #1
0
								<span class="highlighted">
									<?php 
    echo gettext('Items that are <span class="missing_owner">highlighted</span> appear to no longer to exist.');
    ?>
								</span>
							</p>
							<ul class="highlighted">
								<li>
									<?php 
    printf(gettext('<span class="missing_owner">highlighted</span>%s '), '<input type="checkbox" id="missing" checked="checked" onclick="$(\'.missing\').prop(\'checked\', $(\'#missing\').prop(\'checked\'));">');
    ?>
								</li>
							</ul>
							<ul>
								<?php 
    listOwners($owners);
    ?>
							</ul>
							<p class="buttons">
								<button type="submit" value="<?php 
    echo gettext('Apply');
    ?>
" > <img src="<?php 
    echo WEBPATH . '/' . ZENFOLDER;
    ?>
/images/pass.png" alt = "" /> <strong><?php 
    echo gettext("Apply");
    ?>
 </strong></button>
								<button type="reset" value="<?php 
    echo gettext('reset');
예제 #2
0
function listOwners($owners, $nest = '')
{
    global $xlate, $highlighted;
    foreach ($owners as $owner => $detail) {
        ?>
		<li>
			<?php 
        if (is_array($detail)) {
            $autocheck = str_replace('/', '_', $nest . $owner);
            if (array_key_exists($owner, $xlate)) {
                echo $xlate[$owner];
            } else {
                echo $owner;
            }
            ?>
				<input type="checkbox" id="<?php 
            echo $autocheck;
            ?>
" onclick="$('.<?php 
            echo $autocheck;
            ?>
').prop('checked', $('#<?php 
            echo $autocheck;
            ?>
').prop('checked'));">
				<ul>
					<?php 
            listOwners($detail, $nest . $owner . '/');
            ?>

				</ul>
				<?php 
        } else {
            $autocheck = str_replace('/', '_', rtrim($nest, '/'));
            if ($detail && file_exists(SERVERPATH . '/' . internalToFilesystem($nest . $detail))) {
                $missing = '';
                $labelclass = 'none';
                $checked = false;
            } else {
                $labelclass = 'missing_owner';
                $missing = ' missing';
                $checked = ' checked="checked"';
                $highlighted = true;
                if (basename($nest) != THEMEFOLDER) {
                    ?>
						<input type="hidden" name="missingplugin[]" value="<?php 
                    echo $detail;
                    ?>
" />
						<?php 
                }
            }
            if (empty($detail)) {
                $display = gettext('unknown');
                $labelclass = ' empty_name';
                $checked = ' checked="checked"';
            } else {
                $display = stripSuffix($detail);
            }
            ?>
				<label class="<?php 
            echo $labelclass;
            ?>
">
					<input type="checkbox" name="del[]" class="<?php 
            echo $autocheck . $missing;
            ?>
" value="<?php 
            echo $nest . $detail;
            ?>
"<?php 
            echo $checked;
            ?>
 /><?php 
            echo $display;
            ?>
				</label>
				<?php 
        }
        ?>
		</li>
		<?php 
    }
}