function phpAds_placeLayerSettings() { global $ltr, $loop, $speed, $pause, $shiftv, $transparent, $backcolor; global $limited, $lmargin, $rmargin; global $tabindex; if (!isset($ltr)) { $ltr = 't'; } if (!isset($loop)) { $loop = 'n'; } if (!isset($speed)) { $speed = 3; } if (!isset($pause)) { $pause = 10; } if (!isset($shiftv)) { $shiftv = 0; } if (!isset($limited)) { $limited = 'f'; } if (!isset($transparent)) { $transparent = 't'; } if (!isset($backcolor)) { $backcolor = '#FFFFFF'; } if ($limited == 't') { if (!isset($lmargin) || !isset($rmargin)) { $limited = 'f'; $lmargin = $rmargin = ''; } } echo "<tr><td height='30' colspan='3'> </td></tr>"; echo "<tr height='1'><td colspan='3' bgcolor='#888888'><img src='images/break-el.gif' height='1' width='100%'></td></tr>"; echo "<tr><td height='10' colspan='3'> </td></tr>"; echo "<tr><td width='30'> </td>"; echo "<td width='200'>" . $GLOBALS['strDirection'] . "</td><td width='370'>"; echo "<select name='ltr' style='width:175px;' tabindex='" . $tabindex++ . "'>"; echo "<option value='t'" . ($ltr == 't' ? ' selected' : '') . ">" . $GLOBALS['strLeftToRight'] . "</option>"; echo "<option value='f'" . ($ltr == 'f' ? ' selected' : '') . ">" . $GLOBALS['strRightToLeft'] . "</option>"; echo "</select>"; echo "<tr><td width='30'><img src='images/spacer.gif' height='1' width='100%'></td>"; echo "<td colspan='2'><img src='images/break-l.gif' height='1' width='200' vspace='6'></td></tr>"; echo "<tr><td width='30'> </td>"; echo "<td width='200'>" . $GLOBALS['strLooping'] . "</td><td width='370'>"; echo "<select name='loop' style='width:175px;' tabindex='" . $tabindex++ . "'>"; echo "<option value='n'" . ($loop == 'n' ? ' selected' : '') . ">" . $GLOBALS['strAlwaysActive'] . "</option>"; for ($i = 1; $i <= 10; $i++) { echo "<option value='" . $i . "'" . ($loop == $i ? ' selected' : '') . ">" . $i . "</option>"; } echo "</select>"; echo "<tr><td width='30'><img src='images/spacer.gif' height='1' width='100%'></td>"; echo "<td colspan='2'><img src='images/break-l.gif' height='1' width='200' vspace='6'></td></tr>"; echo "<tr><td width='30'> </td>"; echo "<td width='200'>" . $GLOBALS['strSpeed'] . "</td><td width='370'>"; echo "<select name='speed' style='width:60px;' tabindex='" . $tabindex++ . "'>"; for ($i = 1; $i <= 5; $i++) { echo "<option value='" . $i . "'" . ($speed == $i ? ' selected' : '') . ">" . $i . "</option>"; } echo "</select>"; echo "<tr><td width='30'><img src='images/spacer.gif' height='1' width='100%'></td>"; echo "<td colspan='2'><img src='images/break-l.gif' height='1' width='200' vspace='6'></td></tr>"; echo "<tr><td width='30'> </td>"; echo "<td width='200'>" . $GLOBALS['strPause'] . "</td><td width='370'>"; echo "<input class='flat' type='text' name='pause' size='' value='" . $pause . "' style='width:60px;' tabindex='" . $tabindex++ . "'> " . $GLOBALS['strSeconds'] . "</td></tr>"; echo "<tr><td width='30'><img src='images/spacer.gif' height='1' width='100%'></td>"; echo "<td colspan='2'><img src='images/break-l.gif' height='1' width='200' vspace='6'></td></tr>"; echo "<tr><td width='30'> </td>"; echo "<td width='200'>" . $GLOBALS['strVShift'] . "</td><td width='370'>"; echo "<input class='flat' type='text' name='shiftv' size='' value='" . $shiftv . "' style='width:60px;' tabindex='" . $tabindex++ . "'> " . $GLOBALS['strAbbrPixels'] . "</td></tr>"; echo "<tr><td width='30'><img src='images/spacer.gif' height='1' width='100%'></td>"; echo "<td colspan='2'><img src='images/break-l.gif' height='1' width='200' vspace='6'></td></tr>"; echo "<tr><td width='30'> </td>"; echo "<td width='200'>" . $GLOBALS['strLimited'] . "</td><td width='370'>"; echo "<select name='limited' style='width:60px;' tabindex='" . $tabindex++ . "' onChange='this.form.lmargin.disabled = this.selectedIndex ? true : false; this.form.rmargin.disabled = this.selectedIndex ? true : false'>"; echo "<option value='t'" . ($limited == 't' ? ' selected' : '') . ">" . $GLOBALS['strYes'] . "</option>"; echo "<option value='f'" . ($limited == 'f' ? ' selected' : '') . ">" . $GLOBALS['strNo'] . "</option>"; echo "</select>"; echo "<tr><td width='30'><img src='images/spacer.gif' height='1' width='100%'></td>"; echo "<td colspan='2'><img src='images/break-l.gif' height='1' width='200' vspace='6'></td></tr>"; echo "<tr><td width='30'> </td>"; echo "<td width='200'>" . $GLOBALS['strLeftMargin'] . "</td><td width='370'>"; echo "<input class='flat' type='text' name='lmargin' size='' tabindex='" . $tabindex++ . "' value='" . $lmargin . "' style='width:60px;'" . ($limited == 'f' ? ' disabled' : '') . "> " . $GLOBALS['strAbbrPixels'] . "</td></tr>"; echo "<tr><td width='30'><img src='images/spacer.gif' height='1' width='100%'></td>"; echo "<td colspan='2'><img src='images/break-l.gif' height='1' width='200' vspace='6'></td></tr>"; echo "<tr><td width='30'> </td>"; echo "<td width='200'>" . $GLOBALS['strRightMargin'] . "</td><td width='370'>"; echo "<input class='flat' type='text' name='rmargin' size='' tabindex='" . $tabindex++ . "' value='" . $rmargin . "' style='width:60px;'" . ($limited == 'f' ? ' disabled' : '') . "> " . $GLOBALS['strAbbrPixels'] . "</td></tr>"; echo "<tr><td width='30'><img src='images/spacer.gif' height='1' width='100%'></td>"; echo "<td colspan='2'><img src='images/break-l.gif' height='1' width='200' vspace='6'></td></tr>"; echo "<tr><td width='30'> </td>"; echo "<td width='200'>" . $GLOBALS['strTransparentBackground'] . "</td><td width='370'>"; echo "<select name='transparent' style='width:60px;' onChange='this.form.backcolor.disabled = this.selectedIndex ? false : true' tabindex='" . $tabindex++ . "'>"; echo "<option value='t'" . ($transparent == 't' ? ' selected' : '') . ">" . $GLOBALS['strYes'] . "</option>"; echo "<option value='f'" . ($transparent == 'f' ? ' selected' : '') . ">" . $GLOBALS['strNo'] . "</option>"; echo "</select>"; echo "<tr><td width='30'><img src='images/spacer.gif' height='1' width='100%'></td>"; echo "<td colspan='2'><img src='images/break-l.gif' height='1' width='200' vspace='6'></td></tr>"; echo "<tr><td width='30'> </td>"; echo "<td width='200'>" . $GLOBALS['strBackgroundColor'] . "</td><td width='370'>"; echo "<table border='0' cellspacing='0' cellpadding='0'>"; echo "<tr><td width='22'>"; echo "<table border='0' cellspacing='1' cellpadding='0' bgcolor='#000000'><tr>"; echo "<td id='backcolor_box' bgcolor='" . $backcolor . "'><img src='images/spacer.gif' width='16' height='16'></td>"; echo "</tr></table></td><td>"; echo "<input type='text' class='flat' name='backcolor' id='backcolor' size='10' maxlength='7' tabindex='" . $tabindex++ . "' value='" . $backcolor . "' onFocus='this.oldvalue = this.value' onChange='c_update(this.id, this.value)'" . ($transparent == 't' ? ' disabled' : '') . ">"; echo "</td><td align='right' width='262'>"; echo "<div id='backcolor_cp' class='colorpicker'></div>"; phpAds_settings_cp_map('backcolor'); echo "</td></tr></table>"; echo "<tr><td width='30'><img src='images/spacer.gif' height='1' width='100%'></td>"; }
function phpAds_placeLayerSettings() { global $align, $valign, $closetime, $padding; global $shifth, $shiftv, $closebutton; global $backcolor, $bordercolor; global $nobg, $noborder; global $tabindex; if (!isset($align)) { $align = 'right'; } if (!isset($valign)) { $valign = 'top'; } if (!isset($closetime)) { $closetime = '-'; } if (!isset($padding)) { $padding = '2'; } if (!isset($shifth)) { $shifth = 0; } if (!isset($shiftv)) { $shiftv = 0; } if (!isset($closebutton)) { $closebutton = 'f'; } if (!isset($backcolor)) { $backcolor = '#FFFFFF'; } if (!isset($bordercolor)) { $bordercolor = '#000000'; } if (!isset($nobg)) { $nobg = 'f'; } if (!isset($noborder)) { $noborder = 'f'; } echo "<tr><td height='30' colspan='3'> </td></tr>"; echo "<tr height='1'><td colspan='3' bgcolor='#888888'><img src='images/break-el.gif' height='1' width='100%'></td></tr>"; echo "<tr><td height='10' colspan='3'> </td></tr>"; echo "<tr><td width='30'> </td>"; echo "<td width='200'>" . $GLOBALS['strHAlignment'] . "</td><td width='370'>"; echo "<select name='align' style='width:175px;' tabindex='" . $tabindex++ . "'>"; echo "<option value='left'" . ($align == 'left' ? ' selected' : '') . ">" . $GLOBALS['strLeft'] . "</option>"; echo "<option value='center'" . ($align == 'center' ? ' selected' : '') . ">" . $GLOBALS['strCenter'] . "</option>"; echo "<option value='right'" . ($align == 'right' ? ' selected' : '') . ">" . $GLOBALS['strRight'] . "</option>"; echo "</select>"; echo "</td></tr>"; echo "<tr><td width='30'><img src='images/spacer.gif' height='1' width='100%'></td>"; echo "<td colspan='2'><img src='images/break-l.gif' height='1' width='200' vspace='6'></td></tr>"; echo "<tr><td width='30'> </td>"; echo "<td width='200'>" . $GLOBALS['strVAlignment'] . "</td><td width='370'>"; echo "<select name='valign' style='width:175px;' tabindex='" . $tabindex++ . "'>"; echo "<option value='top'" . ($valign == 'top' ? ' selected' : '') . ">" . $GLOBALS['strTop'] . "</option>"; echo "<option value='middle'" . ($valign == 'middle' ? ' selected' : '') . ">" . $GLOBALS['strMiddle'] . "</option>"; echo "<option value='bottom'" . ($valign == 'bottom' ? ' selected' : '') . ">" . $GLOBALS['strBottom'] . "</option>"; echo "</select>"; echo "</td></tr>"; echo "<tr><td width='30'><img src='images/spacer.gif' height='1' width='100%'></td>"; echo "<td colspan='2'><img src='images/break-l.gif' height='1' width='200' vspace='6'></td></tr>"; echo "<tr><td width='30'> </td>"; echo "<td width='200'>" . $GLOBALS['strShowCloseButton'] . "</td><td width='370'>"; echo "<select name='closebutton' style='width:175px;' tabindex='" . $tabindex++ . "'>"; echo "<option value='t'" . ($closebutton == 't' ? ' selected' : '') . ">" . $GLOBALS['strYes'] . "</option>"; echo "<option value='f'" . ($closebutton == 'f' ? ' selected' : '') . ">" . $GLOBALS['strNo'] . "</option>"; echo "</select>"; echo "<tr><td width='30'><img src='images/spacer.gif' height='1' width='100%'></td>"; echo "<td colspan='2'><img src='images/break-l.gif' height='1' width='200' vspace='6'></td></tr>"; echo "<tr><td width='30'> </td>"; echo "<td width='200'>" . $GLOBALS['strAutoCloseAfter'] . "</td><td width='370'>"; echo "<input class='flat' type='text' name='closetime' size='' value='" . (isset($closetime) ? $closetime : '-') . "' style='width:60px;' tabindex='" . $tabindex++ . "'> " . $GLOBALS['strAbbrSeconds'] . "</td></tr>"; echo "<tr><td width='30'><img src='images/spacer.gif' height='1' width='100%'></td>"; echo "<tr><td height='30' colspan='3'> </td></tr>"; echo "<tr height='1'><td colspan='3' bgcolor='#888888'><img src='images/break-el.gif' height='1' width='100%'></td></tr>"; echo "<tr><td height='10' colspan='3'> </td></tr>"; echo "<tr><td width='30'> </td>"; echo "<td width='200'>" . $GLOBALS['strBannerPadding'] . "</td><td width='370'>"; echo "<input class='flat' type='text' name='padding' size='' value='" . $padding . "' style='width:60px;' tabindex='" . $tabindex++ . "'> " . $GLOBALS['strAbbrPixels'] . "</td></tr>"; echo "<tr><td width='30'><img src='images/spacer.gif' height='1' width='100%'></td>"; echo "<td colspan='2'><img src='images/break-l.gif' height='1' width='200' vspace='6'></td></tr>"; echo "<tr><td width='30'> </td>"; echo "<td width='200'>" . $GLOBALS['strHShift'] . "</td><td width='370'>"; echo "<input class='flat' type='text' name='shifth' size='' value='" . $shifth . "' style='width:60px;' tabindex='" . $tabindex++ . "'> " . $GLOBALS['strAbbrPixels'] . "</td></tr>"; echo "<tr><td width='30'><img src='images/spacer.gif' height='1' width='100%'></td>"; echo "<td colspan='2'><img src='images/break-l.gif' height='1' width='200' vspace='6'></td></tr>"; echo "<tr><td width='30'> </td>"; echo "<td width='200'>" . $GLOBALS['strVShift'] . "</td><td width='370'>"; echo "<input class='flat' type='text' name='shiftv' size='' value='" . $shiftv . "' style='width:60px;' tabindex='" . $tabindex++ . "'> " . $GLOBALS['strAbbrPixels'] . "</td></tr>"; echo "<tr><td width='30'><img src='images/spacer.gif' height='1' width='100%'></td>"; echo "<td colspan='2'><img src='images/break-l.gif' height='1' width='200' vspace='6'></td></tr>"; echo "<tr><td width='30'> </td>"; echo "<td width='200'>" . $GLOBALS['strBackgroundColor'] . "</td><td width='370'>"; echo "<table border='0' cellspacing='0' cellpadding='0'>"; echo "<tr><td width='22'>"; echo "<table border='0' cellspacing='1' cellpadding='0' bgcolor='#000000'><tr>"; echo "<td id='backcolor_box' bgcolor='" . $backcolor . "'><img src='images/spacer.gif' width='16' height='16'></td>"; echo "</tr></table></td><td>"; echo "<input type='text' class='flat' name='backcolor' id='backcolor' size='10' maxlength='7' tabindex='" . $tabindex++ . "' value='" . $backcolor . "' onFocus='this.oldvalue = this.value' onChange='c_update(this.id, this.value)'" . ($nobg == 't' ? ' disabled' : '') . ">"; echo "</td><td align='right' width='262'>"; echo "<div id='backcolor_cp' class='colorpicker'></div>"; phpAds_settings_cp_map('backcolor'); echo "</td></tr></table>"; echo "<tr><td width='30'><img src='images/spacer.gif' height='1' width='100%'></td>"; echo "<td colspan='2'><img src='images/break-l.gif' height='1' width='200' vspace='6'></td></tr>"; echo "<tr><td width='30'> </td>"; echo "<td width='200'>" . $GLOBALS['strBorderColor'] . "</td><td width='370'>"; echo "<table border='0' cellspacing='0' cellpadding='0'>"; echo "<tr><td width='22'>"; echo "<table border='0' cellspacing='1' cellpadding='0' bgcolor='#000000'><tr>"; echo "<td id='bordercolor_box' bgcolor='" . $bordercolor . "'><img src='images/spacer.gif' width='16' height='16'></td>"; echo "</tr></table></td><td>"; echo "<input type='text' class='flat' name='bordercolor' id='bordercolor' size='10' maxlength='7' tabindex='" . $tabindex++ . "' value='" . $bordercolor . "' onFocus='this.oldvalue = this.value' onChange='c_update(this.id, this.value)'" . ($noborder == 't' ? ' disabled' : '') . ">"; echo "</td><td align='right' width='262'>"; echo "<div id='bordercolor_cp' class='colorpicker'></div>"; phpAds_settings_cp_map('bordercolor'); echo "</td></tr></table>"; echo "<tr><td width='30'><img src='images/spacer.gif' height='1' width='100%'></td>"; echo "<td colspan='2'><img src='images/break-l.gif' height='1' width='200' vspace='6'></td></tr>"; echo "<tr><td width='30'> </td>"; echo "<td colspan='2'>"; echo "<input type='checkbox' name='nobg' value='t' tabindex='" . $tabindex++ . "' onClick='this.form.backcolor.disabled=this.checked;backDiv.style.display=this.checked?\"none\":\"\"'" . ($nobg == 't' ? ' checked' : '') . "> "; echo 'Transparent background'; echo "</td></tr>"; echo "<tr><td width='30'> </td>"; echo "<td colspan='2'>"; echo "<input type='checkbox' name='noborder' value='t' tabindex='" . $tabindex++ . "' onClick='this.form.bordercolor.disabled=this.checked;borderDiv.style.display=this.checked?\"none\":\"\"'" . ($noborder == 't' ? ' checked' : '') . "> "; echo 'No border'; echo "</td></tr>"; echo "<tr><td width='30'><img src='images/spacer.gif' height='1' width='100%'></td>"; }