コード例 #1
0
ファイル: im_edit_title.php プロジェクト: rpitv/rpits
    echo "<h3>Weather Graphic</h3>";
    foreach ($geos['weather'] as $geo) {
        foreach ($geo as $key => $prop) {
            if (!array_search($key, $ignore)) {
                printEditableRow($geo, $titleId, $key, $key);
            }
        }
    }
}
if ($geos['gameSummary']) {
    $ignore = array(' ', 'y', 'w', 'h', 'name', 'order', 'type', 'x');
    echo "<h3>Game Summary</h3>";
    foreach ($geos['gameSummary'] as $geo) {
        foreach ($geo as $key => $prop) {
            if (!array_search($key, $ignore)) {
                printEditableRow($geo, $titleId, $key, $key);
            }
        }
    }
}
echo '</div>';
?>
<br style="clear:both" />

<button tid="<?php 
echo $titleId;
?>
" id="forceRender" name="ForceRender">Force Render</button>
<button tid="<?php 
echo $titleId;
?>
コード例 #2
0
ファイル: im_edit_ptitle.php プロジェクト: rpitv/rpits
    echo '<div class="form"><form class="edit_form" action="javascript:true" method="GET">';
    echo '<input type="hidden" name="id" value="' . $id . '" />';
    if ($newlines > 0) {
        echo '<textarea class="noHotkeys" rows="' . ($newlines + 1) . '" name="' . $value . '">' . "\n" . $val . '</textarea>';
    } else {
        echo '<input class="noHotkeys" type="' . $row . '" name="' . $value . '" value="' . $val . '" />';
    }
    echo '<input class="submit noHotkeys" type="submit" value="Update" />';
    echo '</form></div>';
    echo '</div>';
}
$editableRows = array('num', 'first', 'last', 'pos', 'height', 'weight', 'year', 'hometown', 'stype', 's1', 's2', 's3', 's4', 's5', 's6', 's7', 's8');
echo '<div id="editTitle">';
echo "<h3>Player Data</h3>";
foreach ($editableRows as $text) {
    printEditableRow($titleId, $titleRow, $text, $slabel);
}
echo '</div>';
?>
<br style="clear:both" />

<button tid="<?php 
echo $titleId;
?>
" id="forceRender" name="ForceRender">Force Render</button>
<button tid="<?php 
echo $titleId;
?>
" id="revertChanges" name="RevertChanges">Revert Changes</button>