rendered paste body<xar:set name="screens">xarRequestGetVar('screens')</xar:set>
<xar:if condition="empty($screens)">
<xar:set name="mycids">current($cids)</xar:set>
<xar:set name="dummy">xarvarsetcached('Blocks.articles','mycids',$mycids)</xar:set>
<div id="centerstuff">
<div id="contenttitle">
<div id="contenttitlel"></div>
<div id="contenttitlem">#$title# - Game Info <xar:if condition="!empty($editurl)">[<a href="#$editurl#">#$edittitle#</a>]</xar:if></div>
<div id="contenttitler"></div>
</div>
<div id="contentmid"><div id="contentmid2">
<div id="contenttext">
<xar:categories-navigation layout="trails" showchildren="1" module="articles" itemtype="$ptid" itemid="$aid" cids="$cids" showcatcount="$showcatcount" showempty="0" />
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td>
<xar:set name="fulllink">xarServerGetCurrentURL()</xar:set>
<a href="#$fulllink#" title="Game Space - #$title#">Game Space</a> |<xar:set name="$foo">1;
$id = $aid;
$args['module'] = 'articles';
$args['itemtype'] = 3;
$args['where'] = 'games eq ' . $aid;
</xar:set>
<xar:set name="$gamesddlist">
xarModAPIFunc('dynamicdata','user','getitems',$args)
</xar:set>
<xar:set name="$gamesarray">
$gamesid = array_keys($gamesddlist);
$gamesids = $gamesid;
$listargs['sort'] = 'date';
$listargs['aids'] = $gamesids;
</xar:set>
<xar:if condition="!empty($gamesid)">
<xar:set name="$gameslinks">
xarModAPIFunc('articles','user','getall',$listargs)
</xar:set>
<xar:foreach in="$gameslinks" key="$id" value="$aid">
<a href="#xarModURL('articles','user','display', array('ptid' => $aid['pubtypeid'], 'aid' => $aid['aid']))#" title="#$aid['title']#">Review</a> <xar:if condition="!empty($editurl)">(<a href="#xarModURL('articles','admin','modify', array('aid' => $aid['aid']))#
">Edit</a>)</xar:if> <xar:if condition="!empty($editurl)">(<a href="#xarModURL('articles','admin','delete', array('aid' => $aid['aid']))#">Delete</a>)</xar:if>
|
</xar:foreach>
<xar:else /> Review |
</xar:if>
<xar:set name="$foo">1;
$id = $aid;
$args['module'] = 'articles';
$args['itemtype'] = 10;
$args['where'] = 'games eq ' . $aid;
</xar:set>
<xar:set name="$gamesddlist">
xarModAPIFunc('dynamicdata','user','getitems',$args)
</xar:set>
<xar:set name="$gamesarray">
$gamesid = array_keys($gamesddlist);
$gamesids = $gamesid;
$listargs['sort'] = 'date';
$listargs['aids'] = $gamesids;
</xar:set>
<xar:if condition="!empty($gamesid)">
<xar:set name="$gameslinks">
xarModAPIFunc('articles','user','getall',$listargs)
</xar:set>
<xar:foreach in="$gameslinks" key="$id" value="$aid">
<a href="#xarModURL('articles','user','display', array('ptid' => $aid['pubtypeid'], 'aid' => $aid['aid']))#" title="#$aid['title']# Preview">Preview</a> <xar:if condition="!empty($editurl)">(<a href="#xarModURL('articles','admin','modify', array('aid' => $aid['aid']))#
">Edit</a>)</xar:if> <xar:if condition="!empty($editurl)">(<a href="#xarModURL('articles','admin','delete', array('aid' => $aid['aid']))#">Delete</a>)</xar:if>
|</xar:foreach><xar:else /> Preview |
</xar:if>
<xar:set name="$foo">1;
$id = $aid;
$args['module'] = 'articles';
$args['itemtype'] = 20;
$args['where'] = 'games eq ' . $aid;
</xar:set>
<xar:set name="$gamesddlist">
xarModAPIFunc('dynamicdata','user','getitems',$args)
</xar:set>
<xar:set name="$gamesarray">
$gamesid = array_keys($gamesddlist);
$gamesids = $gamesid;
$listargs['sort'] = 'date';
$listargs['aids'] = $gamesids;
</xar:set>
<xar:if condition="!empty($gamesid)">
<xar:set name="$gameslinks">
xarModAPIFunc('articles','user','getall',$listargs)
</xar:set>
<xar:foreach in="$gameslinks" key="$id" value="$aid">
<xar:set name="fulllink">xarServerGetCurrentURL()</xar:set>
<SCRIPT language="Javascript">
function popwin() {
window.open("#xarModURL('articles','user','display', array('ptid' => $aid['pubtypeid'], 'aid' => $aid['aid']))#?theme=print2" , "screens","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=820,height=505")
}
</SCRIPT>
<a href="javascript:popwin();" title="#$aid['title']# Trailers">Trailers</a> |</xar:foreach><xar:else /> Trailers |
</xar:if>
<xar:set name="$foo">1;
$id = $aid;
$args['module'] = 'articles';
$args['itemtype'] = 21;
$args['where'] = 'games eq ' . $aid;
</xar:set>
<xar:set name="$gamesddlist">
xarModAPIFunc('dynamicdata','user','getitems',$args)
</xar:set>
<xar:set name="$gamesarray">
$gamesid = array_keys($gamesddlist);
$gamesids = $gamesid;
$listargs['sort'] = 'date';
$listargs['aids'] = $gamesids;
</xar:set>
<xar:if condition="!empty($gamesid)">
<xar:set name="$gameslinks">
xarModAPIFunc('articles','user','getall',$listargs)
</xar:set>
<xar:foreach in="$gameslinks" key="$id" value="$aid">
<a href="#xarModURL('articles','user','display', array('ptid' => $aid['pubtypeid'], 'aid' => $aid['aid']))#" title="#$aid['title']# Interviews">Interviews</a> |</xar:foreach><xar:else /> Interviews |
</xar:if>
<xar:set name="$foo">1;
$id = $aid;
$args['module'] = 'articles';
$args['itemtype'] = 14;
$args['where'] = 'games eq ' . $aid;
</xar:set>
<xar:set name="$gamesddlist">
xarModAPIFunc('dynamicdata','user','getitems',$args)
</xar:set>
<xar:set name="$gamesarray">
$gamesid = array_keys($gamesddlist);
$gamesids = $gamesid;
$listargs['sort'] = 'date';
$listargs['aids'] = $gamesids;
</xar:set>
<xar:if condition="!empty($gamesid)">
<xar:set name="$gameslinks">
xarModAPIFunc('articles','user','getall',$listargs)
</xar:set>
<xar:foreach in="$gameslinks" key="$id" value="$aid">
<a href="#xarModURL('articles','user','display', array('ptid' => $aid['pubtypeid'], 'aid' => $aid['aid']))#" title="#$aid['title']# Cheats">Cheats</a> <xar:if condition="!empty($editurl)">(<a href="#xarModURL('articles','admin','modify', array('aid' => $aid['aid']))#
">Edit</a>)</xar:if> <xar:if condition="!empty($editurl)">(<a href="#xarModURL('articles','admin','delete', array('aid' => $aid['aid']))#">Delete</a>)</xar:if>
</xar:foreach><xar:else /> Cheats
</xar:if>
<br /><br />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<xar:if condition="isset($box_image_output) AND count($box_image_output)"><td width="145" align="center" valign="top"><xar:foreach in="$box_image_output" key="$imageId">
<xar:image-resize src="$imageId" width="135px" label="$title" />
</xar:foreach><xar:else /><td width="145" align="center" valign="top"><img border="0" src="http://www.eternalgaming.com/images/No-Box-Art.jpg" width="135" height="193" /></td>
<td width="10"> </td></xar:if>
<td align="left" valign="top">
<xar:if condition="!empty($release_date)"><b>Release Date:</b> #$release_date#<br><xar:else /><b>Release Date:</b> N/A<br /></xar:if>
<xar:if condition="!empty($esrb)"><b>ESRB:</b> #$esrb#<br><xar:else /><b>ESRB:</b> N/A<br /></xar:if>
<xar:if condition="!empty($genre)"><b>Genre:</b> #$genre#<br><xar:else /><b>Genre:</b> N/A<br /></xar:if>
<xar:if condition="!empty($platform)"><b>Platform:</b> #$platform#<br><xar:else /><b>Platform:</b> N/A<br /></xar:if>
<xar:if condition="!empty($game_rating)"><b>Game Rating:</b> #$game_rating#<br><xar:else /><b>Game Rating:</b> N/A<br /></xar:if>
<xar:if condition="!empty($multiplayer)"><b>Multiplayer:</b> #$multiplayer#<br><xar:else /><b>Multiplayer:</b> N/A<br /></xar:if>
<xar:if condition="!empty($developer)"><b>Developer:</b> #$developer#<br><xar:else /><b>Developer:</b> N/A<br /></xar:if>
<xar:if condition="!empty($publisher)"><b>Publisher:</b> #$publisher#<br><xar:else /><b>Publisher:</b> N/A<br /></xar:if>
</td>
</tr>
</table></td>
</tr>
<tr>
<td align="left">
<ul id="maintab" class="shadetabs">
<li class="selected"><a href="#default" rel="ajaxcontentarea">Overview</a></li>
<li><a href="#xarServerGetCurrentURL()#?screens=1&theme=gscreens" rel="ajaxcontentarea">Screenshots</a></li>
<li><a href="#xarServerGetCurrentURL()#?theme=gnews" rel="ajaxcontentarea">News</a></li>
<li><a href="#xarServerGetCurrentURL()#?theme=gcommnets" rel="ajaxcontentarea">Comments</a></li>
</ul>
<div id="ajaxcontentarea" class="contentstyle">
<xar:if condition="!empty($body)"><b>Game Overview:</b> #$body#<xar:else />More info Coming Soon</xar:if>
</div>
<script type="text/javascript">
//Start Ajax tabs script for UL with id="maintab" Separate multiple ids each with a comma.
startajaxtabs("maintab")
</script>
</td>
</tr>
</table>
<center>
<b>::Related Links Below Ad::</b>
<xar:set name="wii_gamesblocksgroup"><xar:blockgroup name="wii_games" id="wii_games" /></xar:set>
<xar:var name="wii_gamesblocksgroup"/>
<xar:if condition="!empty($official_site_url)"><a href="#$official_site_url#" target="_blank" title="#$title#"><img src="images/osite.gif" alt="Official Site"></a><xar:else /><img src="images/osited.gif" alt="No Official Site"></xar:if>
<xar:if condition="!empty($developer_url)">
<a href="#$developer_url#" target="_blank"><img src="images/dsite.gif" alt="Developer Site"></a><xar:else /><img src="images/dsited.gif" alt="Developer Site"></xar:if>
<xar:if condition="!empty($publisher_url)">
<a href="#$publisher_url#" target="_blank"><img src="images/psite.gif" alt="Publisher Site"></a><xar:else /><img src="images/psited.gif" alt="Publisher Site"></xar:if>
</center>
<xar:if condition="xarUserIsLoggedin()">
<xar:if condition="isset($custom)">
<xar:set name="custom">current($custom)</xar:set>
<div id="maindiv" class="addProducts">
<ul>
echo "<pre>"; print_r($xforms); die();
<xar:foreach in="$custom" value="$naid">
<xar:set name="ainfo">xarmodapifunc('articles','user','get',array('aid' => $naid))</xar:set>
<li>New article, #$ainfo['title']#, created.</li>
</xar:foreach>
</ul>
<p style="text-align:center;"><a href="/multiples">Add some more.</a></p>
</div>
<xar:else />
<script type="text/javascript">
<!--
function addEvent()
{
var ni = document.getElementById('myDiv');
var numi = document.getElementById('theValue');
var num = (document.getElementById("theValue").value -1)+ 2;
numi.value = num;
var divIdName = "my"+num+"Div";
var newdiv = document.createElement('div');
newdiv.setAttribute("id",divIdName);
//newdiv.innerHTML = "Element Number "+num+" has been added! <a href=\"javascript:;\" onclick=\"removeEvent(\'"+divIdName+"\')\">Remove the div ""+divIdName+""</a>";
newdiv.innerHTML = "<a class=\"removeProducts\" href=\"javascript:;\" onclick=\"removeEvent(\'"+divIdName+"\')\">Remove this item</a><dl><dt>Title:</dt><dd><input name=\"title[]\" type=\"text\" /></dd><dt>Summary:</dt><dd><input name=\"summary[]\" type=\"textarea\" /></dd><dt>Body:</dt><dd><input name=\"body[]\" type=\"textarea\" /></dd><dt>Notes:</dt><dd><input name=\"author[]\" type=\"text\" /></dd></dl>";
//<a href=\"javascript:;\" onclick=\"removeEvent(\'"+divIdName+"\')\">Remove this item</a>
ni.appendChild(newdiv);
}
function removeEvent(divNum)
{
var d = document.getElementById('myDiv');
var olddiv = document.getElementById(divNum);
d.removeChild(olddiv);
}
//-->
</script>
<xar:sec mask="SubmitArticles" catch="false">
<input type="hidden" value="0" id="theValue" />
<form method="post" name="post" id="post" action="http://www.eternalgaming.com/multiples" style="clear:both;" enctype="multipart/form-data">
<div id="maindiv" class="addProducts">
<p>Add screenshots with form below.</p>
<xar:set name="paid">xarvargetcached('Blocks.articles','aid')</xar:set>
<xar:set name="ptitle">xarvargetcached('Blocks.articles','title')</xar:set>
<xar:set name="pcids">xarvargetcached('Blocks.articles','mycids')</xar:set>
<dl>
<dt>Description:</dt>
<dd><input name="summary[]" type="textarea" /></dd>
<dt>Add Picture</dt>
<dd><input type="file" name="attach_upload[]" id="body_attach_upload_id" /><input type="hidden" name="MAX_FILE_SIZE[]" value="10000000" />
<input type="hidden" name="body_attach_type[]" id="body_attach_type" value="1" />
</dd>
<input type="hidden" name="new_cids[]" multiple="multiple" id="new_cids[]" value="#$pcids#" />
<input type="hidden" name="title[]" id="title" value="#$ptitle#" />
<input type="hidden" name="notes[]" id="notes" value="#$paid#" />
</dl>
<div id="myDiv"> </div>
<p style="text-align:right;"><a href="javascript:;" onclick="addEvent();" title="Click here to add multiple items at once.">Add another article</a> or
<input type="submit" value="Submit Article(s)" />
</p>
</div>
</form>
<xar:else />
Sorry.
</xar:sec>
</xar:if></xar:if>
</div></div>
</div></div>
<xar:else />
</xar:if>