Get User ID (not current) in a overridden views.tpl.php I'm using Drupal 7.
I'm creating a view based on profile. It will show a list of all the people.
Now I'm overriding the file views-view-unformatted--MYVIEW-page.tpl.php and I would like to add in the class of the row the ID of that user.
If I write

global $users;
$user-&gt;uid;


of course it's giving me the id of the current user and not the uid of that profile.

I would like to create something like this:
FIRST EXAMPLE:

    &lt;?php
    $this_uid = I NEED THIS TOKEN;
    ?&gt;
&lt;ul&gt;
    &lt;?php foreach ($rows as $id =&gt; $row): ?&gt;
      &lt;li class="&lt;?php print $classes_array[$id]; print " ".$this_uid;?&gt;"&gt;
        &lt;?php print $row; ?&gt;
      &lt;/li&gt;
    &lt;?php endforeach; ?&gt;
&lt;/ul&gt;


I could create a custom text field in the view a put all the field inside the &lt;li&gt; tag
like: 
SECOND EXAMPLE:

&lt;li class="[user]"&gt;[name] [gender]&lt;/li&gt;


and the file tpl.php will become

    &lt;ul&gt;
&lt;?php foreach ($rows as $id =&gt; $row): ?&gt;
            &lt;?php print $row; ?&gt;
        &lt;?php endforeach; ?&gt;
&lt;/ul&gt;


But in this way I will lose the default row classes...

How can i get the first example? Do I need to create a view based on user instead of profile? Or should I use the second example?

Thanks in advance.
You should have a $views variable available with an array similar to $rows called $view-&gt;result[] that contains the unrendered/raw view results and just as long as you have a field in your output that has the uid in it, you will be able to access it directly here.  (It can be a hidden field if you don't want it rendered later on) Put a drupal_set_message('&lt;pre&gt;' . print_r($view-&gt;result, true) . '&lt;/pre&gt;'); or its equivalent in your template to take a look at it, but basically you should be able to use something like $view-&gt;result[$id]-&gt;FIELDNAME to access it or any other raw data.