+</form>
+
+<script type="text/javascript">
+ $(function() {
+ $('.login-openid')
+ .click(function() {
+ var op = $(this).data('op');
+ var openId;
+
+ switch (op)
+ {
+ case 'google':
+ openId = 'https://www.google.com/accounts/o8/id';
+ break;
+ case 'yahoo':
+ openId = 'https://me.yahoo.com/';
+ break;
+ case 'myopenid':
+ openId = 'https://myopenid.com/';
+ break;
+ }
+
+ $.post('<?php echo site_url('user/login') ?>',
+ {'openid': openId},
+ function(text) {
+ document.open();
+ document.write(text);
+ document.close();
+ });
+ })
+ .each(function() {
+ var op = $(this).data('op');
+
+ $(this)
+ .button({
+ icons: {
+ primary: 'ui-icon-' + op
+ }
+ });
+ });
+
+ });
+</script>
\ No newline at end of file