예제 #1
0
    function formulaire($r = array())
    {
        set_values_db('Caranille_Items', 'Item_Type', array('Parchment'));
        ?>
	        
            <form method="POST" action="<?php 
        echo get_link("Parchments", "Admin");
        ?>
">
            <?php 
        echo forumulaire_db('Caranille_Items', $r);
        ?>
			    <br/>
			<?php 
        echo line_db('Caranille_Craftings', 'Crafting_Fragment_ID');
        ?>
				<input type="submit" name="Back" value="Annuler" />
		    	<input type="submit" name="End_<?php 
        echo request_confirm('Add') ? 'Add' : 'Edit';
        ?>
" value="Terminer"/>
				<?php 
        if (request_confirm('Second_Edit')) {
            ?>
<input type="submit" name="Second_Delete" value="Supprimer"><?php 
        }
        ?>
		    </form>
<?php 
        if (isset($r["Item_ID"])) {
            $loots = list_db('foreign_list', array('table' => 'Caranille_Craftings', 'ID' => 'Crafting_Item_ID', 'value' => $r["Item_ID"]));
            list_html($loots, "Caranille_Craftings", "Crafts", array('Crafting_Fragment_ID'), true, false);
        }
    }
예제 #2
0
    function formulaire($r = array())
    {
        global $array_Fragments_type;
        set_values_db('Caranille_Fragments', 'Fragment_Type', $array_Fragments_type);
        ?>
	        
			<form method="POST" action="<?php 
        echo get_link("Fragments", "Admin");
        ?>
">
			    <?php 
        echo forumulaire_db('Caranille_Fragments', $r);
        ?>
			    <br/>
				<input type="submit" name="Back" value="Annuler" />
		    	<input type="submit" name="End_<?php 
        echo request_confirm('Add') ? 'Add' : 'Edit';
        ?>
" value="Terminer"/>
				<?php 
        if (request_confirm('Second_Edit')) {
            ?>
<input type="submit" name="Second_Delete" value="Supprimer"><?php 
        }
        ?>
		    </form>
<?php 
    }
예제 #3
0
    function get_formulaire_Menu($Menu = array())
    {
        extract(stripslashes_r($Menu));
        if (isset($Menu_Module)) {
            set_values_db('Caranille_Menus', 'Menu_Link', list_menu($Menu_Module));
        }
        ?>
				<form method="POST" action="<?php 
        echo get_link("Menus", "Admin");
        ?>
">
				    <h2><?php 
        echo request_confirm('Add') ? 'Ajout' : 'Modification';
        ?>
 du Menu</h2>
    				<?php 
        echo forumulaire_db('Caranille_Menus', $Menu);
        ?>
    			    <br/>
    				<input type="submit" name="Back" value="Annuler" />
    		    	<input type="submit" name="End_<?php 
        echo request_confirm('Add') ? 'Add' : 'Edit';
        ?>
" value="Terminer"/>
    				<?php 
        if (request_confirm('Second_Edit')) {
            ?>
<input type="submit" name="Second_Delete" value="Supprimer"><?php 
        }
        ?>
    		    </form>
<?php 
    }
예제 #4
0
    function get_formulaire($equipment = array())
    {
        global $array_accessory_type;
        //extract(stripslashes_r($equipment));
        set_values_db('Caranille_Items', 'Item_Type', $array_accessory_type);
        ?>
			
			<form method="POST" action="<?php 
        echo get_link("Equipment", "Admin");
        ?>
">
				    <h2><?php 
        echo request_confirm('Add') ? 'Ajout' : 'Modification';
        ?>
 d'Equipement</h2>
			 <?php 
        echo forumulaire_db('Caranille_Items', $equipment);
        ?>
			    <br/>
			<?php 
        echo line_db('Caranille_Craftings', 'Crafting_Fragment_ID');
        ?>
				<input type="submit" name="Back" value="Annuler" />
		    	<input type="submit" name="End_<?php 
        echo request_confirm('Add') ? 'Add' : 'Edit';
        ?>
" value="Terminer"/>
				<?php 
        if (request_confirm('Second_Edit')) {
            ?>
<input type="submit" name="Second_Delete" value="Supprimer"><?php 
        }
        ?>
		    </form>
<?php 
        if (isset($r["Item_ID"])) {
            $loots = list_db('foreign_list', array('table' => 'Caranille_Craftings', 'ID' => 'Crafting_Item_ID', 'value' => $r["Item_ID"]));
            list_html($loots, "Caranille_Craftings", "Crafts", array('Crafting_Fragment_ID'), true, false);
        }
    }
예제 #5
0
function ajout_forum_form($map_cat)
{
    $list_rank = list_db('guild_list_rank', array('Guild_ID' => user_data('Account_Guild_ID')));
    foreach ($list_rank as $l) {
        $values[$l['Rank_ID']] = $l['Rank_Name'];
    }
    set_values_db("Caranille_Forums", "Auth_View", $values);
    set_values_db("Caranille_Forums", "Auth_Post", $values);
    set_values_db("Caranille_Forums", "Auth_Topic", $values);
    set_values_db("Caranille_Forums", "Auth_Annonce", $values);
    set_values_db("Caranille_Forums", "Auth_Modo", $values);
    if (has_guild_acces('forum')) {
        $form = '<form method="POST" action="' . get_link("Main", "Guild") . '">';
        $form .= '<h2>Ajout de Forum</h2>';
        $form .= '<input type="hidden" name="Forum_Guild_ID" value="' . user_data('Account_Guild_ID') . '"/>';
        $form .= '<table style="width:100%">';
        $form .= '<tr>';
        $form .= '<td style="width:50%">';
        $form .= line_db("Caranille_Forums", "Forum_Name");
        $form .= 'Catégorie : <select name="Forum_Cat_ID">';
        foreach ($map_cat as $ID => $nom) {
            $form .= '<option value="' . $ID . '">' . $nom . '</option>';
        }
        $form .= '</select>';
        $form .= line_db("Caranille_Forums", "Auth_View");
        $form .= line_db("Caranille_Forums", "Auth_Post");
        $form .= line_db("Caranille_Forums", "Auth_Topic");
        $form .= line_db("Caranille_Forums", "Auth_Annonce");
        $form .= line_db("Caranille_Forums", "Auth_Modo");
        $form .= '</td>';
        $form .= '<td style="width:50%">' . call_bbcode_editor("Forum_Desc", "", "guild-forum") . '</td>';
        $form .= '</tr>';
        $form .= '<tr>';
        $form .= '<td><input type="submit" name="End_Add_Forum" value="Terminer"/></td>';
        $form .= '</tr>';
        $form .= '</table>';
        $form .= '</form>';
        return $form;
    }
}