<?xml version="1.0" encoding="ISO-8859-1" ?>
<dialog name="playerinfo_2" x="2" y="4" >
	<background name="playerinfo" />
	<commentary value="50" />
	<gadgets>

		<radio name="ID_MENU" x="1" y="-1" w="20" d="1" options="116" background="submenu" variablewidth="true"  />
		
		<text background="none" font="medium" x="1" y="-3" d="2" w="30" var="@p.name" format="player_name" comment="Player Name"/>
		<image name="ID_PHOTO" x="24" y="1" var="@p.photo_medium" stamp="photo_100x140"/>		

		<group visible="false" id="6" >
			<text x="1" y="1" w="6" value="110" background="generic" comment="Contracted until"/>	<text x="7" y="1" w="7" format="date_short" var="@p.expiry"/>
			<text x="1" y="2" w="6" value="111" background="generic" comment="Contract Months"/>	<text x="7" y="2" w="7" format="number" var="@p.contract.monthsremaining" combine="122"/>
		</group>

		<group visible="false" id="7" >
			<text x="1" y="1" w="6" value="119" background="generic" comment="On Loan until"/>		<text x="7" y="1" w="7" format="date_short" var="@p.loan.end"/>
			<text x="1" y="2" w="6" value="120" background="generic" comment="On Loan from"/>		<text x="7" y="2" w="7" format="team_name_id" var="@p.loan.from"/>
		</group>

		
		<text x="1" y="4" w="6" value="112" background="generic" comment="Weekly Wage"/>		<text x="7" y="4" w="7" format="cash" var="@p.wage"/>
		
		<text x="1" y="6" w="6" value="113" background="generic" comment="Last Transfer"/>		<text x="7" y="6" w="7" format="cash" var="@p.fee" zero="17" />
		<text x="1" y="7" w="6" value="114" background="generic" comment="Current Value"/>		<text x="7" y="7" w="7" format="cash" var="@p.value" zero="17"/>

		<grid x="1" y="10" w="27" d="5" header="115">
			<data source="qryPlayerHistory" />
			<columns>	
				<column w="6" format="season" var="@ph.season" header="1" comment="season" />
				<column w="9" format="team_name_id" var="@ph.team" header="2" comment="team" />>			
				<column w="3" format="number" var="@ph.apps" header="3" comment="apps" />
				<column w="3" format="number" var="@ph.goals" header="4" comment="goals" />
				
				<column w="3" format="number" var="@ph.rcards" comment="r/c">
					<header image="gfx/match/teletype_team_redcard.tga"  />
				</column>
		
				<column w="3" format="number" var="@ph.ycards" comment="y/c">
					<header image="gfx/match/teletype_team_yellowcard.tga" />
				</column>
		
			</columns>
		</grid>

		<text name="ID_HISTORY"	x="1" y="16" w="28" d="4" wrap="true" />
		
		<include filename="playerinfo_buttons" />
		
		<box x="0" y="0" w="30" d="24" />

		
	</gadgets>
</dialog>


