Beispiel #1
0
function do_op(&$objSrcUser,&$objTrgUser,$cnt,$thieves,$mod)
{
	include_once("inc/pages/advisors.inc.php");
        
	$result["fame"] = 0;
	$result["text_screen"] = get_military_training_table($objTrgUser);
	$result["text_news"] = "";

	return $result;
}
Beispiel #2
0
function include_advisors_text()
{
    $objSrcUser =& $GLOBALS["objSrcUser"];
    $show = 'population';
    if (isset($_GET['show'])) {
        $show = $_GET['show'];
    }
    echo get_advisor_links($show);
    switch ($show) {
        case 'population':
            ?>
    <!-- <div id="textMedium">
        <p><b>The population advisor</b> greets you humbly:<br />Leader, no lands have ever before seen such great care that you show us. Please allow me to kiss your feet.</p>
    </div> -->
    <div id="columns">
        <!-- Start left column -->
        <div id="leftcolumn">
            <h2>Population</h2>
            <div class="tableLinkSmall">
                <a href="main.php?cat=game&amp;page=build">Construction</a>
            </div>
            <?php 
            echo get_housing_table($objSrcUser);
            ?>
<br />
            <?php 
            echo get_population_table($objSrcUser);
            ?>
            <?php 
            echo get_guide_link($objSrcUser, 'advisor_population');
            ?>
        </div>
        <!-- end left column -->

        <!-- start right column -->
        <div id="rightcolumn">
            <h2>Citizens</h2>
            <div class="tableLinkSmall">
                <a href="main.php?cat=game&amp;page=mystic">Mystics</a>
            </div>
            <?php 
            echo get_citizen_table($objSrcUser);
            ?>
        </div>
        <!-- End of the right column-->
    </div>
    <!-- end of 2 column layout -->

<?php 
            break;
            // end case population
        // end case population
        case 'resources':
            ?>
    <!-- <div id="textMedium">
        <p><b>The resource advisor</b> greets you humbly:<br />Leader, no lands have ever before seen such great care that you show us. Please allow me to kiss your feet.</p>
    </div> -->
    <div id="columns">
        <!-- Start left column -->
        <div id="leftcolumn">
            <h2>Production</h2>
            <?php 
            echo get_income_table($objSrcUser);
            ?>
<br /><br />
            <?php 
            echo get_wood_table($objSrcUser);
            ?>

            <h2>Resources</h2>
            <div class="tableLinkSmall">
                <a href="main.php?cat=game&amp;page=market&amp;action=sell">Sell Goods</a>
            </div>
            <?php 
            echo get_goods_table($objSrcUser);
            ?>
        </div>
        <!-- end left column -->

        <!-- start right column -->
        <div id="rightcolumn">
            <h2>&nbsp;</h2>
            <?php 
            echo get_food_table($objSrcUser);
            ?>
<br /><br />
            <div class="tableLinkSmall">
                <a href="main.php?cat=game&amp;page=research">Invest</a>
            </div>
            <?php 
            echo get_research_table($objSrcUser);
            ?>

            <h2>&nbsp;</h2>
            <div class="tableLinkSmall">
                <a href="main.php?cat=game&amp;page=advisors&amp;show=build">Infrastructure</a>
            </div>
            <?php 
            echo get_building_output_table($objSrcUser);
            ?>
        </div>
        <!-- end right column -->
    </div>
    <!-- end of 2 column layout -->
<?php 
            break;
            // end case resources
        // end case resources
        case 'military':
            include_once "inc/functions/tribe.php";
            ?>
    <!-- <div id="textMedium">
        <p><b>Your general</b> greets you humbly:<br />Leader, no lands have ever before seen such great care that you show us. Please allow me to kiss your feet.</p>
    </div> -->
    <br />
    <!-- Start 2 column layout -->
    <div id="columns">
        <!-- Start left column -->
        <div id="leftcolumn">
            <?php 
            echo get_offence_table($objSrcUser);
            ?>
        </div>
        <!-- end left column -->

        <!-- start right column -->
        <div id="rightcolumn">
            <?php 
            echo get_defence_table($objSrcUser);
            ?>
        </div>
        <!-- end right column -->
    </div>
    <div class="clear"><hr /></div>
    <!-- end of 2 column layout -->
    <br />
    <div class="tableLinkMedium">
        <a href="main.php?cat=game&amp;page=army">Military Training</a>
    </div>
    <?php 
            echo get_military_training_table($objSrcUser);
            ?>
    <br />
    <div class="tableLinkMedium">
        <a href="main.php?cat=game&amp;page=invade">Invasion</a>
    </div>
    <?php 
            echo get_military_returning_table($objSrcUser);
            ?>
    <?php 
            echo get_guide_link($objSrcUser, 'advisor_military', 'textMedium');
            ?>
    <br />
<?php 
            break;
            // end case military
        // end case military
        case 'actions':
            ?>
    <!-- <div id="textMedium">
        <p><b>The advisor</b> greets you humbly:<br />Leader, no lands have ever before seen such great care that you show us. Please allow me to kiss your feet.</p>
    </div> -->
    <br />
    <div id="columns">
        <!-- Start left column -->
        <div id="leftcolumn">
            <div class="tableLinkSmall">
                <a href="main.php?cat=game&amp;page=mystic">Mystics</a>
            </div>
            <?php 
            echo get_effecting_spells_table($objSrcUser);
            ?>
            <?php 
            echo get_guide_link($objSrcUser, 'advisor_actions');
            ?>
        </div>
        <!-- end left column -->

        <!-- start right column -->
        <div id="rightcolumn">
            <div class="tableLinkSmall">
                <a href="main.php?cat=game&amp;page=thievery">Thievery</a>
            </div>
            <?php 
            echo get_effecting_ops_table($objSrcUser);
            ?>
        </div>
        <!-- end right column -->
    </div>
    <div class="clear"><hr /></div>
    <!-- end of 2 column layout -->
<?php 
            break;
            // end case actions
        // end case actions
        case 'build':
            ?>
    <!-- <div id="textMedium">
        <p><b>The tribe architect</b> greets you humbly:<br />Leader, no lands have ever before seen such great care that you show us. Please allow me to kiss your feet.</p>
    </div> -->
    <br />
    <div class="tableLinkMedium">
        <a href="main.php?cat=game&amp;page=explore">Exploration</a> ::
        <a href="main.php?cat=game&amp;page=build">Construction</a>
    </div>
    <?php 
            echo get_construction_table($objSrcUser);
            ?>
    <?php 
            echo get_guide_link($objSrcUser, 'advisor_build', 'textMedium');
            break;
            // end case build
    }
}