PageRenderTime 291ms queryFilters 1ms Sphinxql 218ms app.CodeModel.GetByIds 13ms findMatchingLines 13ms GetByIds 26ms meta 0ms repositoryFilters 0ms languageFilters 0ms sourceFilters 3ms

4,916,907 results for 'foreach' (291 ms)

Source

Language

Repository

MainGame.cs https://bitbucket.org/optimus290/xna-wp7-cardgame.git | C# | 646 lines
64
65            foreach (Card card in playerOneDeck.cards)
66                card.Selected = false;
67            
68            foreach (Card card in playerTwoDeck.cards)
69                card.Selected = false;
219
220                foreach (TouchLocation touch in TouchPanel.GetState())
221                    pauseMenu.Update(touch);
260        
261            foreach(Card card in playerOneCards)
262                card.Draw(spriteBatch);
263
264            foreach (Card card in playerTwoCards)
265                card.Draw(spriteBatch);
42P2_to_50.php https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | PHP | 4,235 lines
88		);
89foreach($alter_array1 as $query)
90{
168		);
169foreach($actionmapping_array as $query)
170{
179		);
180foreach($alter_array2 as $query)
181{
230		);
231foreach($update_array1 as $query)
232{
270		      );
271foreach($insert_array1 as $query)
272{
UserInfoUtil.php https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | PHP | 2,255 lines
389	$recordOwnerArr=getRecordOwnerId($record_id);
390	foreach($recordOwnerArr as $type=>$id)
391	{
407		//Checking if the Record Owner is the Subordinate User
408		foreach($subordinate_roles_users as $roleid=>$userids)
409		{
574	$recordOwnerArr=getRecordOwnerId($record_id);
575	foreach($recordOwnerArr as $type=>$id)
576	{
586		$read_role_per=$read_per_arr['ROLE'];
587		foreach($read_role_per as $roleid=>$userids)
588		{
599		$read_grp_per=$read_per_arr['GROUP'];
600		foreach($read_grp_per as $grpid=>$userids)
601		{
QueryGenerator.php https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | PHP | 1,113 lines
167		$this->customViewColumnList = $customView->getColumnsListByCvid($viewId);
168		foreach ($this->customViewColumnList as $customViewColumnInfo) {
169			$details = explode(':', $customViewColumnInfo);
226		$dateSpecificConditions = $customView->getStdFilterConditions();
227		foreach ($advFilterList as $groupindex=>$groupcolumns) {
228				$filtercolumns = $groupcolumns['columns'];
230					$this->startGroup('');
231					foreach ($filtercolumns as $index=>$filter) {
232						$nameComponents = explode(':',$filter['columnname']);
280			$allFields = array_merge($this->whereFields,$this->fields);
281			foreach ($allFields as $fieldName) {
282				if(in_array($fieldName,$this->referenceFieldList)) {
283					$moduleList = $this->referenceFieldInfoList[$fieldName];
284					foreach ($moduleList as $module) {
285						if(empty($this->moduleNameFields[$module])) {
Excel2007.php https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | PHP | 1,998 lines
249			if ($rels !== false) {
250				foreach ($rels->Relationship as $rel) {
251					switch ($rel["Type"]) {
286		$rels = simplexml_load_string($this->_getFromZipArchive($zip, "_rels/.rels")); //~ http://schemas.openxmlformats.org/package/2006/relationships");
287		foreach ($rels->Relationship as $rel) {
288			if ($rel["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument") {
293				$worksheets = array();
294				foreach ($relsWorkbook->Relationship as $ele) {
295					if ($ele["Type"] == "http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet") {
302					$dir = dirname($rel["Target"]);
303					foreach ($xmlWorkbook->sheets->sheet as $eleSheet) {
304						$tmpInfo = array();
313						if ($xmlSheet && $xmlSheet->sheetData && $xmlSheet->sheetData->row) {
314							foreach ($xmlSheet->sheetData->row as $row) {
315								foreach ($row->c as $c) {
Header.tpl https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | Smarty Template | 814 lines
28	<!-- Custom Header CSS -->
29	{foreach item=HDRCSS from=$HEADERCSS}
30	<link rel="stylesheet" type="text/css" href="{$HDRCSS->linkurl}" />
30	<link rel="stylesheet" type="text/css" href="{$HDRCSS->linkurl}" />
31	{/foreach}
32	<!-- END -->
87	<!-- Custom Header Script -->
88	{foreach item=HEADERSCRIPT from=$HEADERSCRIPTS}
89	<script type="text/javascript" src="{$HEADERSCRIPT->linkurl}"></script>
89	<script type="text/javascript" src="{$HEADERSCRIPT->linkurl}"></script>
90	{/foreach}
91	<!-- END -->
149						<td>
150						{foreach item=HEADERLINK from=$HEADERLINKS}
151						{assign var="headerlink_href" value=$HEADERLINK->linkurl}
EditViewUI.tpl https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | Smarty Template | 980 lines
57			{/if}
58			{foreach item=option from=$fldlabel.options}
59				<option value="{$option}"
62				</option>
63			{/foreach}
64			</select>
143			   	{/if}
144				{foreach item=arr from=$fldvalue}
145					{if $arr[0] eq $APP.LBL_NOT_ACCESSIBLE}
153					{/if}
154				{foreachelse}
155					<option value=""></option>
156					<option value="" style='color: #777777' disabled>{$APP.LBL_NONE}</option>
157				{/foreach}
158			   </select>
DetailViewUI.tpl https://bitbucket.org/thomashii/vtigercrm-6-for-postgresql.git | Smarty Template | 380 lines
55							</tr>
56							{foreach item=price key=count from=$PRICE_DETAILS}
57								<tr>
65								</tr>
66							{/foreach}
67							</table>
87	{elseif $keyid eq '15' || $keyid eq '16' || $keyid eq '31' || $keyid eq '32'} <!--ComboBox-->
88						{foreach item=arr from=$keyoptions}
89							{if $arr[0] eq $APP.LBL_NOT_ACCESSIBLE && $arr[2] eq 'selected'}
94							{/if}
95						{/foreach}
96							<td width=25% class="dvtCellInfo" align="left" id="mouseArea_{$label}" onmouseover="hndMouseOver({$keyid},'{$label}');" onmouseout="fnhide('crmspanid');"><span id="dtlview_{$label}"><font color="{$fontval}">{if $APP.$keyval!=''}{$APP.$keyval}{elseif $MOD.$keyval!=''}{$MOD.$keyval}{else}{$keyval}{/if}</font></span>
98                    							   <select id="txtbox_{$label}" name="{$keyfldname}" class="small">
99                    								{foreach item=arr from=$keyoptions}
100											{if $arr[0] eq $APP.LBL_NOT_ACCESSIBLE}
features.module https://bitbucket.org/hjain/trinet.git | Unknown | 897 lines
167  );
168  foreach ($items as $path => $item) {
169    if (!isset($item['access callback'])) {
280  if ($modules = array_intersect(array_keys(features_get_features()), $modules)) {
281    foreach ($modules as $module) {
282      features_disable_feature($module);
292  if ($modules = array_intersect(array_keys(features_get_features()), $modules)) {
293    foreach ($modules as $module) {
294      features_enable_feature($module);
312
313    foreach (array_filter($modules, 'module_exists') as $module) {
314      module_load_include('inc', 'features', "includes/features.$module");
322    // Clear static cache, since we've now included new implementers.
323    foreach (features_get_components(NULL, 'file') as $file) {
324      require_once DRUPAL_ROOT . '/' . $file;
features.export.inc https://bitbucket.org/hjain/trinet.git | Pascal | 882 lines
20  // Clean up and standardize order
21  foreach (array_keys($export['features']) as $k) {
22    ksort($export['features'][$k]);
44  features_include();
45  foreach ($pipe as $component => $data) {
46    static $processed = array();
64        // Remove already processed components.
65        foreach ($more as $component_name => $component_data) {
66          if (isset($processed[$component_name])) {
83  if ($map = features_get_default_map($component)) {
84    foreach ($data as $key => $item) {
85      // If this node type is provided by a different module, add it as a dependency
108  $required = drupal_required_modules();
109  foreach ($dependencies as $k => $v) {
110    if (empty($v) || in_array($v, $required)) {
features.admin.inc https://bitbucket.org/hjain/trinet.git | Pascal | 878 lines
91  );
92  foreach ($components as $component => $component_info) {
93    $options = features_invoke($component, 'features_export_options');
103      if ($map = features_get_default_map($component)) {
104        foreach ($map as $k => $v) {
105          if (isset($options[$k]) && (!isset($feature->name) || $v !== $feature->name)) {
110      // Ensure all options are stripped of potentially bad values.
111      foreach ($options as $k => $v) {
112        $options[$k] = check_plain($v);
192  $components = array_keys(features_get_components());
193  foreach ($components as $component) {
194    // User-selected components take precedence.
209  $attr = array('name', 'description', 'package');
210  foreach ($attr as $key) {
211    $export[$key] = isset($form_state['values'][$key]) ? $form_state['values'][$key] : NULL;
export.inc https://bitbucket.org/hjain/trinet.git | Pascal | 1,251 lines
410  if ($type == 'names' && !empty($args)) {
411    foreach ($args as $id => $name) {
412      if (isset($cache[$table][$name])) {
427  if (!empty($schema['join'])) {
428    foreach ($schema['join'] as $join_key => $join) {
429      if ($join_schema = drupal_get_schema($join['table'])) {
449  else if ($type == 'conditions') {
450    foreach ($args as $key => $value) {
451      if (isset($schema['fields'][$key])) {
460  // Unpack the results of the query onto objects and cache them.
461  foreach ($result as $data) {
462    if (isset($schema['export']['object factory']) && function_exists($schema['export']['object factory'])) {
494  if ($defaults) {
495    foreach ($defaults as $object) {
496      if ($type == 'conditions') {
context.inc https://bitbucket.org/hjain/trinet.git | Pascal | 1,584 lines
145    // See which of these contexts are valid
146    foreach ((array) $contexts as $cid => $context) {
147      if ($context->is_type($this->keywords)) {
149        if (!empty($this->restrictions) && !empty($context->restrictions)) {
150          foreach ($this->restrictions as $key => $values) {
151            // If we have a restriction, the context must either not have that
262    $result = array();
263    foreach ($required as $r) {
264      $result = array_merge($result, _ctools_context_filter($contexts, $r));
303    $count = 1;
304    foreach ($required as $id => $r) {
305      $result[] = _ctools_context_selector($contexts, $r, isset($default[$id]) ? $default[$id] : '', $count++);
320    // If there's more than one to choose from, create a select widget.
321    foreach ($filtered as $cid => $context) {
322      $options[$cid] = $context->get_identifier();
MathTrig.php https://bitbucket.org/amorello/changeover.git | PHP | 1,366 lines
350		// Loop through arguments
351		foreach(PHPExcel_Calculation_Functions::flattenArray(func_get_args()) as $value) {
352			if (!is_numeric($value)) {
375		} elseif ($mergedArrayValues > 1) {
376			foreach($mergedArray as $mergedKey => $mergedValue) {
377				foreach($allValuesFactors as $highestPowerTest) {
377				foreach($allValuesFactors as $highestPowerTest) {
378					foreach($highestPowerTest as $testKey => $testValue) {
379						if (($testKey == $mergedKey) && ($testValue < $mergedValue)) {
387			$returnValue = 1;
388			foreach($mergedArray as $key => $value) {
389				$returnValue *= pow($key,$value);
395			$value = $mergedArray[$key];
396			foreach($allValuesFactors as $testValue) {
397				foreach($testValue as $mergedKey => $mergedValue) {
admin-edit-access.php https://bitbucket.org/cisash/fananeen.git | PHP | 915 lines
21    $types_other = get_post_types(array('show_ui' => true), 'objects');
22    foreach ($types_other as $type_slug => $type_data) {
23        if (isset($types[$type_slug])) {
40        $output .= '<h3>' . __('Custom Types', 'wpcf') . '</h3>';
41        foreach ($types as $type_slug => $type_data) {
42            if ($type_data['public'] === 'hidden') {
95    $taxonomies_other = get_taxonomies(array('show_ui' => true), 'objects');
96    foreach ($taxonomies_other as $tax_slug => $tax_data) {
97        if (isset($taxonomies[$tax_slug])) {
112        $supports_check = array();
113        foreach ($taxonomies as $tax_slug => $tax_data) {
114            $mode = isset($tax_data['_wpcf_access_capabilities']['mode']) ? $tax_data['_wpcf_access_capabilities']['mode'] : 'follow';
119            }
120            foreach ($tax_data['supports'] as $supports_type => $true) {
121                if (!isset($types[$supports_type]['_wpcf_access_capabilities']['mode'])) {
fields-post.php https://bitbucket.org/cisash/fananeen.git | PHP | 1,546 lines
74    $wpcf_active = false;
75    foreach ($groups as $key => $group) {
76        if (!empty($group['fields'])) {
142        }
143        foreach ($group['args']['fields'] as $field_slug => $field) {
144            if (empty($field)) {
205    $all_fields = array();
206    foreach ($groups as $group) {
207        // Process fields
227    if (!empty($_POST['wpcf'])) {
228        foreach ($_POST['wpcf'] as $field_slug => $field_value) {
229            // Skip copied fields
244                delete_post_meta($post_ID, $meta_key);
245                foreach ($field_value as $temp_id => $repetitive_data) {
246                    // Skype specific
UsersupervisionController.php https://bitbucket.org/efirgilius/ims-application.git | PHP | 950 lines
77                        {
78                            foreach($_POST['TLocation']['staff'] as $rowStaff)
79                            {
100                                {
101                                    foreach($_POST['TLocation']['staff'] as $rowStaff)
102                                    {
110                        {
111                            foreach($_POST['TLocation']['staff'] as $rowStaff)
112                            {
133                                {
134                                    foreach($_POST['TLocation']['staff'] as $rowStaff1)
135                                    {
146                                {
147                                    foreach($_POST['TLocation']['staff'] as $rowStaff)
148                                    {
functions.display.php https://bitbucket.org/rmarefaty/linfo.git | PHP | 1,142 lines
105		$cpus = '';
106		foreach ((array) $info['CPU'] as $cpu) 
107			$cpus .=
131		if (array_key_exists('totals', $info['processStats']) && is_array($info['processStats']['totals']))
132			foreach ($info['processStats']['totals'] as $k => $v) 
133				$proc_stats[] = $k . ': ' . number_format($v);
218									</tr>';
219									foreach($info['RAM']['swapInfo'] as $swap)
220										echo '
255			if (count($info['Network Devices']) > 0)
256				foreach($info['Network Devices'] as $device => $stats)
257					echo '
317				';
318		foreach ($info['Battery'] as $bat) 
319			echo '
Server.pm https://bitbucket.org/gvallee/systemimager-4.1.6-ubuntuprecise.git | Perl | 2,367 lines
165    open(RSYNC_CONF, ">$rsyncconf") or return undef;
166      foreach my $stub_file (@stubfiles) {
167        my $file = "$stub_dir/$stub_file";
284    my $part_config = XMLin($file, keyattr => { fsinfo => "+line" }, forcearray => 1 );
285    foreach my $line (keys %{$part_config->{fsinfo}}) {
286        if ($part_config->{fsinfo}->{$line}->{comment}) { 
294    my $fs_config = XMLin($file, keyattr => { disk => "+dev", part => "+num" }, forcearray => 1 );  
295    foreach my $key (keys %{$fs_config->{disk}}) {
296        push @dev_list, $key;
314    my $fs_config = XMLin($file, keyattr => { disk => "+dev", part => "+num" }, forcearray => 1 );  
315    foreach my $key (keys %{$fs_config->{disk}}) {
316	push @dev_list, $key;
342
343    foreach my $dev (@devices) {
344        $table{$dev} = $dev;
acf.php https://bitbucket.org/theshipswakecreative/powersportswraps.git | PHP | 1,619 lines
163		
164		foreach( $scripts as $k => $v )
165		{
178		
179		foreach( $styles as $k => $v )
180		{
318		{
319			foreach($custom as $v)
320			{
485		{
486			foreach($result as $acf)
487			{
528		{
529			foreach( $rows as $row )
530			{
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21