Replace short php tags in plugin.php
This commit is contained in:
parent
fe0476f36b
commit
54d8e103d9
|
@ -249,25 +249,25 @@ xhtmlHeaders(__FILE__, $SLANG['Plugin'] );
|
||||||
<div id="settingsPanel">
|
<div id="settingsPanel">
|
||||||
<table id="pluginSettings" cellspacing="0">
|
<table id="pluginSettings" cellspacing="0">
|
||||||
<tbody>
|
<tbody>
|
||||||
<?
|
<?php
|
||||||
foreach($options as $name => $popt)
|
foreach($options as $name => $popt)
|
||||||
{
|
{
|
||||||
?>
|
?>
|
||||||
<tr><th scope="row"><?php echo pLang($name) ?></th>
|
<tr><th scope="row"><?php echo pLang($name) ?></th>
|
||||||
<?
|
<?php
|
||||||
switch($popt['Type'])
|
switch($popt['Type'])
|
||||||
{
|
{
|
||||||
case "checkbox":
|
case "checkbox":
|
||||||
?>
|
?>
|
||||||
<td><input type="checkbox" name="pluginOpt[<?= $popt['Name'] ?>]" id="pluginOpt[<?= $popt['Name'] ?>]" <? if ($popt['Value']) echo 'checked="checked"'; if (!isEnabled($popt['Name'])) echo 'disabled="disabled"'; ?>></td>
|
<td><input type="checkbox" name="pluginOpt[<?php echo $popt['Name'] ?>]" id="pluginOpt[<?php echo $popt['Name'] ?>]" <?php if ($popt['Value']) echo 'checked="checked"'; if (!isEnabled($popt['Name'])) echo 'disabled="disabled"'; ?>></td>
|
||||||
<?
|
<?php
|
||||||
break;
|
break;
|
||||||
case "select":
|
case "select":
|
||||||
$pchoices=explode(',',$popt['Choices']);
|
$pchoices=explode(',',$popt['Choices']);
|
||||||
?>
|
?>
|
||||||
<td colspan="2">
|
<td colspan="2">
|
||||||
<select name="pluginOpt[<?php echo $popt['Name'] ?>]" id="pluginOpt[<?php echo $popt['Name'] ?>]" <? if (!isEnabled($popt['Name'])) echo 'disabled="disabled"'; ?> onchange="applyDependencies()" >
|
<select name="pluginOpt[<?php echo $popt['Name'] ?>]" id="pluginOpt[<?php echo $popt['Name'] ?>]" <?php if (!isEnabled($popt['Name'])) echo 'disabled="disabled"'; ?> onchange="applyDependencies()" >
|
||||||
<?
|
<?php
|
||||||
foreach($pchoices as $pchoice)
|
foreach($pchoices as $pchoice)
|
||||||
{
|
{
|
||||||
$psel="";
|
$psel="";
|
||||||
|
@ -275,29 +275,29 @@ foreach($options as $name => $popt)
|
||||||
$psel="selected";
|
$psel="selected";
|
||||||
?>
|
?>
|
||||||
<option value="<?php echo $pchoice ?>" <?php echo $psel ?>><?php echo pLang($pchoice) ?></option>
|
<option value="<?php echo $pchoice ?>" <?php echo $psel ?>><?php echo pLang($pchoice) ?></option>
|
||||||
<?
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
<?
|
<?php
|
||||||
break;
|
break;
|
||||||
case "text":
|
case "text":
|
||||||
?>
|
?>
|
||||||
<td><input type="text" name="pluginOpt[<?= $popt['Name'] ?>]" id="pluginOpt[<?= $popt['Name'] ?>]" value="<?= $popt['Value'] ?>" <? if (!isEnabled($popt['Name'])) echo 'disabled="disabled"'; ?>></td>
|
<td><input type="text" name="pluginOpt[<?php echo $popt['Name'] ?>]" id="pluginOpt[<?php echo $popt['Name'] ?>]" value="<?php echo $popt['Value'] ?>" <?php if (!isEnabled($popt['Name'])) echo 'disabled="disabled"'; ?>></td>
|
||||||
<?
|
<?php
|
||||||
break;
|
break;
|
||||||
case "integer":
|
case "integer":
|
||||||
?>
|
?>
|
||||||
<td><input type="text" name="pluginOpt[<?= $popt['Name'] ?>]" id="pluginOpt[<?= $popt['Name'] ?>]" onchange="limitRange( this, <?= $popt['Min'] ?>, <?= $popt['Max'] ?> )" value="<?= $popt['Value'] ?>" size="4" <? if (!isEnabled($popt['Name'])) echo 'disabled="disabled"'; ?>></td>
|
<td><input type="text" name="pluginOpt[<?php echo $popt['Name'] ?>]" id="pluginOpt[<?php echo $popt['Name'] ?>]" onchange="limitRange( this, <?php echo $popt['Min'] ?>, <?php echo $popt['Max'] ?> )" value="<?php echo $popt['Value'] ?>" size="4" <?php if (!isEnabled($popt['Name'])) echo 'disabled="disabled"'; ?>></td>
|
||||||
<?
|
<?php
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
echo "Type '".$popt['Type']."' is not implemented<br>";
|
echo "Type '".$popt['Type']."' is not implemented<br>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tr>
|
</tr>
|
||||||
<?
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
Loading…
Reference in New Issue