Recentre le flux RSS, si flux RSS il y a

Expand les options avancée lors de l'édition d'un sous-domaine de type avancé
This commit is contained in:
Alan Garcia 2013-02-06 09:53:39 +00:00
parent 1707edc55a
commit 8b86870ce7
2 changed files with 7 additions and 4 deletions

View File

@ -142,10 +142,13 @@ function domtype_advanced_show() {
$("#domtype_hide").show();
}
domtype_advanced_hide();
<?php if (isset($type) && in_array($type, $lst_advanced) ) { // if it's an edit of an advanced option, we need to show the advanced options ?>
domtype_advanced_show();
<?php } else { ?>
domtype_advanced_hide();
<?php } // if advanced ?>
</script>
<?php
} // sub_domains_edit
?>

View File

@ -60,7 +60,7 @@ if (file_exists($cache_file) && $timedif < $cache_time) {
}
$xml = @simplexml_load_string($string);
echo '<table class="tedit" cellspacing="0" cellpadding="6">';
echo '<div align="center"><table class="tedit" cellspacing="0" cellpadding="6">';
echo "<tr><th colspan=2><a target=_blank style='font-size: 18px;font-weight: bold;color: #10507C;' href='".$xml->channel->link."'>".$xml->channel->title."</a><br/><i>".$xml->channel->description."</i></th></tr>";
//echo '<tr><th>'._("Title").'</th><th>'._("Date").'</th></tr>';
$count = 0;
@ -75,7 +75,7 @@ if ($count < $max) {
}
$count++;
}
echo "</table>\n";
echo "</table></div>\n";
echo "<br/>";
} // empty feed_url